Make j.l.i.CallSite class sealed

2021-10-21 Thread Thiago Henrique Hupner
Currently, the java.lang.invoke.CallSite has a package-private constructor, and in its Javadoc it already mentions all the three subclasses: ConstantCallSite, MutableCallSite and VolatileCallSite. I guess that now that Java has support for sealed classes, the CallSite could be a candidate for it

Make java.lang.constant.ConstantDesc selead

2021-05-20 Thread Thiago Henrique Hupner
Now that Sealed classes are integrated, should be the moment to seal the ConstantDesc class and its subclasses, or would be better to wait a little bit more? Best regards Thiago

JDK Dynalink only works with unconditionally exported packages

2021-05-10 Thread Thiago Henrique Hupner
Hi all. I've been testing the JDK Dynalink recently and I think I've found a bug. The class jdk.dynalink.beans.CheckRestrictedPackage checks if a package is restricted. So, I have a class that has some static methods. But to Dynalink find the class, the class needs to be public. OK, I've