fix bug in isAssignableFrom such that primitive array types were considered to be subclasses of the Object array type

This commit is contained in:
Joel Dice
2012-02-27 18:16:01 -07:00
parent b5fda8ee13
commit c6ac66e45a
3 changed files with 9 additions and 2 deletions

View File

@ -235,5 +235,7 @@ public class Misc {
System.out.println(75.62);
System.out.println(75.62d);
System.out.println(new char[] { 'h', 'i' });
expect(! (((Object) new int[0]) instanceof Object[]));
}
}