paul.sandoz at oracle.com
Thu Feb 23 01:22:27 UTC 2017
I think we should remove the method sun.misc.Unsafe.defineAnonymousClass.
This is one leaked through in the move to the unsupported module. I believe under the remit of unsupported module we can still do this.
There are no usages on grepcode.com <http://grepcode.com/>, and we really don’t want anyone to start depending on this, especially for constant pool patching, where such a public API might require some careful thought, compared to the anon class support itself which is somewhat simpler.
If developers really want constant pool patching they can crack open the jdk.internal.misc package and then they really know this is not supported.
For the anon class support we are considering retconning to nest mates and with a public method on MethodHandles.lookup.
More information about the jigsaw-dev