Hi CDI spec people,
I've an application that uses CDI which breaks when moving from Java 1.6 to
Java 1.7. The problem is that the application injects a
java.util.Hashtable, and in Java 1.7 a new method, initHashSeedAsNeeded,
was added to Hashtable and its a final method, so now the inject fails with:
javax.enterprise.inject.UnproxyableResolutionException: WebBeans with api
type with normal scope must be proxiable to inject. java.util.Hashtable has
final method final boolean java.util.Hashtable.initHashSeedAsNeeded(int)
CDI doesn't allow that.
Why i'm asking about this here is because initHashSeedAsNeeded has default
(package private) visibility, so i wondered if there was any chance that
the change in CDI-159 could be interpreted as also allowing injecting
classes with final package private visibility methods into classes in a
different package?
...ant
Show replies by date