[jboss-jira] [JBoss JIRA] (AS7-3305) java.lang.IllegalAccessError when invoking protected method from another class in the same package path but different jar.
Rodney Kite (JIRA)
jira-events at lists.jboss.org
Fri Jan 13 16:15:21 EST 2012
Rodney Kite created AS7-3305:
--------------------------------
Summary: java.lang.IllegalAccessError when invoking protected method from another class in the same package path but different jar.
Key: AS7-3305
URL: https://issues.jboss.org/browse/AS7-3305
Project: Application Server 7
Issue Type: Bug
Components: Class Loading
Affects Versions: 7.1.0.CR1b
Environment: Windows 7 64 bit, Sun JDK 1.6.0_30 32bit
Reporter: Rodney Kite
Assignee: David Lloyd
tried to access method com.tis.utilities.AbstractJavaBeanSelectionPagination.selectObject(IZ)V from class com.tis.utilities.GenericPaginationBean
I have an EJB jar which uses a MANIFEST.MF CLASS-PATH: entry to include a jar with some utility code. The two jars are packaged in the same ear file. Compiles and deploys fine. For some reason the EJB jar's classes can not invoke protected methods in classes that are in the same package path but in different jars. Invocation of public methods works fine. By the Java spec protected methods should be friends and thus accessible from other classes in the same package path.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list