...
Some projects, such as MethodHandles, require us to develop Java code and test cases under packages like java.dyn
. Classes in packages under java
cannot be loaded by the normal means of setting CLASSPATH
or using the -cp
flag. The JVM will throw an exception like this:
No Format | ||
---|---|---|
| ||
$ java -cp "$mypath" java.dyn.MethodHandleBytecodeTest Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.dyn |
...
Overview
Content Tools
ThemeBuilder