Stefan Gräber
Stefan Gräber
JavaClass already has `isRecord()`, but it lacks `getRecordComponents()` including the returned type. The reflection equivalent was added in Java 16: https://docs.oracle.com/en//java/javase/16/docs/api/java.base/java/lang/Class.html#getRecordComponents() The JavaRecordCompoent needs crosslinking with the owning JavaClass, the...
JavaClass lacks `getModule()` returning a JavaModule. The correspondign reflection method is https://docs.oracle.com/javase//9/docs/api/java/lang/Class.html#getModule-- The new JavaModule must include annotations of target MODULE, the (optional) ModuleDescription including provided classes which might be...
Annotations with target TYPE_PARAMETER can be used to annotate type params/variables, but JavaTypeVariable does not extend HasAnnotations.
When I have a class with type parameters and an inner class, I can specify the type arguments of the outer class when accessing the inner class. These type information...