fix Class.isArray for case this == Class.class

This commit is contained in:
Joel Dice 2009-08-12 19:40:52 -06:00
parent dd82b58dad
commit 0544ab381f

View File

@ -450,7 +450,7 @@ public final class Class <T> implements Type, GenericDeclaration {
}
public boolean isArray() {
return arrayElementSize != 0;
return this != Class.class && arrayElementSize != 0;
}
public boolean isInstance(Object o) {