-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
-
None
If you attempt to use java.util.Properties as a normal scoped bean on JDK8 you get the following error:
Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.IllegalAccessError: tried to access class java.util.Properties$LineReader from class org.jboss.weld.util.Properties$Proxy$_$$_WeldClientProxy at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201) at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
This is because CDI is proxying the private load0 method which references a package private class. As this class is being defined into a different class loader this type is not accessible and the exception results.
I think we should not be proxying private methods anyway, I'm not sure why we are doing it at the moment.
- causes
-
JBEAP-3295 Deployment fails with error "java.lang.IllegalAccessError: tried to access class java.util.Properties$LineReader from class org.jboss.weld.util.Properties$Proxy$_$$_WeldClientProxy"
- Closed