Details
Description
The QDox Type object for java type void returns false for isPrimitive() whereas in java void.class.isPrimitive() is true.
I think Java reflection APIs interpretation of void being a primitive type is weird if not outright wrong. But be that as it may, I think this difference between interpretations of this issue should be mentioned in the javadoc of Type.isPrimitive(). Alternatively Type object for void could return true for isPrimitive() for void to be consistent with Java reflection's interpretation.
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 1.11 [ 15653 ] | |
Assignee | Robert Scholte [ rfscholte ] | |
Issue Type | Improvement [ 4 ] | Bug [ 1 ] |
Robert Scholte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Paul Hammant
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
I guess this method isn't used that much, because it's a pretty nasty bug (and for quite some time). Thanks Antti!
r673 | rfscholte | 2009-09-24 12:42:31 CEST
fix for
QDOX-180: isPrimitive() should return true for a void.----------------------------------------------------------------------------