クラス名取得に関する不具合
Int、Float、Booleanの型を持つ変数のクラス名の取得がおかしくなります。
>>> int a = 5; >>> a.class Any >>> String str = "hello"; >>> str.class String >>> a.class String >>> a instanceof Int false >>> a instanceof String true >>> IN.class InputStream >>> a.class InputStream >>> a instanceof String false >>> a instanceof InputStream true >>> str.class String >>> a.class String >>> a instanceof String true
Int, Float, Boolean のみの不具合は、Boxing 関係です。
Int、Float、Booleanの型を持つ変数のクラス名の取得がおかしくなります。