Relates :
|
Suppose an annotation is of form @interface MyAnnotation { long value(); } Get the annotation object with sun.reflect.annotation.AnnotationParser.annotationForMap(MyAnnotation.class, Map.of("value", some_value)). toString() method will produce a string containing that 'some_value' with the optional 'L' suffix appended. Normally, the suffix is not appended for values that can be represented with int, and is appended otherwise. However, the logic does not hold for values Long.MIN_VALUE and Integer.MIN_VALUE: for the former the suffix is not appended and for the later the suffix L is appended.