Details
-
Bug
-
Resolution: Unresolved
-
P4
-
8, 11, 14, 15
Description
A DESCRIPTION OF THE PROBLEM :
See java.lang.Class.getTypeName():
public String getTypeName() {
if (isArray()) {
try {
Class<?> cl = this;
int dimensions = 0;
do {
dimensions++;
cl = cl.getComponentType();
} while (cl.isArray());
return cl.getName() + "[]".repeat(dimensions);
} catch (Throwable e) { /*FALLTHRU*/ }
}
return getName();
}
This should probably be removed because it might hide serious problems with the JVM. It appears this originates from java.lang.reflect.Field.getTypeName(Class<?>), from where it was moved byJDK-6298888.
See java.lang.Class.getTypeName():
public String getTypeName() {
if (isArray()) {
try {
Class<?> cl = this;
int dimensions = 0;
do {
dimensions++;
cl = cl.getComponentType();
} while (cl.isArray());
return cl.getName() + "[]".repeat(dimensions);
} catch (Throwable e) { /*FALLTHRU*/ }
}
return getName();
}
This should probably be removed because it might hide serious problems with the JVM. It appears this originates from java.lang.reflect.Field.getTypeName(Class<?>), from where it was moved by
Attachments
Issue Links
- relates to
-
JDK-6298888 Add toGenericString to j.l.Class and getTypeName to j.l.reflect.Type
- Closed