[forge-issues] [JBoss JIRA] (FURNACE-71) ClassLoaderInterceptor does not support invocation of package-default methods

George Gastaldi (JIRA) issues at jboss.org
Thu Aug 13 13:45:02 EDT 2015


     [ https://issues.jboss.org/browse/FURNACE-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi updated FURNACE-71:
-----------------------------------
    Summary: ClassLoaderInterceptor does not support invocation of package-default methods  (was: ClassLoaderInterceptor does not support invoking package-default methods)


> ClassLoaderInterceptor does not support invocation of package-default methods
> -----------------------------------------------------------------------------
>
>                 Key: FURNACE-71
>                 URL: https://issues.jboss.org/browse/FURNACE-71
>             Project: Forge: Furnace
>          Issue Type: Bug
>          Components: ClassLoader Adapter
>    Affects Versions: 2.20.1.Final
>            Reporter: George Gastaldi
>            Priority: Minor
>             Fix For: 2.x Future
>
>
> Having a service A and a service B in the same package, and B is proxied through ClassLoaderInterceptor, the following happens when A tries to invoke a package default method (no modifiers) in B: 
> {code}
> java.lang.IllegalAccessException: Class org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1 can not access a member of class B with modifiers ""
> 	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
> 	at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296)
> 	at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288)
> 	at java.lang.reflect.Method.invoke(Method.java:490)
> 	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
> 	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
> 	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the forge-issues mailing list