Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » EasyMock CE + cglib + signed jar = SecurityException
EasyMock CE + cglib + signed jar = SecurityException [message #252388] Wed, 02 April 2008 07:52
Eclipse UserFriend
Originally posted by: alex.ba.chin.gmail.com

I'm trying to use EasyMock 2.2 with Class Extension with cglib 2.1.3 to
mock concrete classes in the org.eclipse.core.expressions library
(Expression, specifically). Whenever I run a JUnit 4 test with one of
these mocks, I get an InvocationTargetException caused by a
SecurityException: signer information does not match signer information of
other classes in the same package.

I understand from cglib's docs that generated classes use the same signer
information as cglib itself. I've tried modifying my java.security.policy
file as noted on the cglib website to no avail.

I can't be the only one who's tried mocking concrete classes from the
signed Eclipse plug-ins. Does anyone have any advice?
Previous Topic:Get the class file (IClassFile) from the java file (ICompilationUnit).
Next Topic:Fully qualified class name from IFile
Goto Forum:
  


Current Time: Fri May 02 09:33:16 EDT 2025

Powered by FUDForum. Page generated in 0.03393 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top