Ticket #19275

クラス名取得に関する不具合

Open Date: 2009-10-21 20:56 Last Update: 2009-10-29 14:53

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
7
Severity:
3
Resolution:
Fixed
File:
None

Details

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

Ticket History (3/3 Histories)

2009-10-21 20:56 Updated by: ryotah
  • New Ticket "クラス名取得に関する不具合" created
2009-10-29 12:31 Updated by: kkuramitsu
  • Priority Update from 3 to 7
  • Owner Update from (None) to kkuramitsu
2009-10-29 14:53 Updated by: kkuramitsu
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2009-10-29 14:53
Comment

Int, Float, Boolean のみの不具合は、Boxing 関係です。

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login