-
Bug
-
Resolution: Won't Fix
-
P2
-
14
Specification for j.l.reflect.RecordComponent::toString says:
"Returns a string describing this record component. The format is the record component type, followed by a space, followed by the name of the record component. For example:
String name"
This doesn't conform to the OpenJDK implementation since the following:
record R(String name) {};
System.out.println(R.class.getRecordComponents()[0]);
would print out:
java.lang.String name
"Returns a string describing this record component. The format is the record component type, followed by a space, followed by the name of the record component. For example:
String name"
This doesn't conform to the OpenJDK implementation since the following:
record R(String name) {};
System.out.println(R.class.getRecordComponents()[0]);
would print out:
java.lang.String name