[jira] Created: (QDOX-180) Different interpretation of voids primitivity between QDox and Java reflection

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (QDOX-180) Different interpretation of voids primitivity between QDox and Java reflection

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Different interpretation of voids primitivity between QDox and Java reflection
------------------------------------------------------------------------------

                 Key: QDOX-180
                 URL: http://jira.codehaus.org/browse/QDOX-180
             Project: QDox
          Issue Type: Improvement
          Components: Java API
    Affects Versions: 1.10
            Reporter: Antti Karanta
            Priority: Minor


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.




--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Updated: (QDOX-180) Different interpretation of voids primitivity between QDox and Java reflection

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/QDOX-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated QDOX-180:
--------------------------------

         Assignee: Robert Scholte
    Fix Version/s: 1.11
       Issue Type: Bug  (was: Improvement)

> Different interpretation of voids primitivity between QDox and Java reflection
> ------------------------------------------------------------------------------
>
>                 Key: QDOX-180
>                 URL: http://jira.codehaus.org/browse/QDOX-180
>             Project: QDox
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 1.10
>            Reporter: Antti Karanta
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 1.11
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[jira] Resolved: (QDOX-180) Different interpretation of voids primitivity between QDox and Java reflection

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/QDOX-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte resolved QDOX-180.
---------------------------------

    Resolution: Fixed

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.
----------------------------------------------------------------------------

> Different interpretation of voids primitivity between QDox and Java reflection
> ------------------------------------------------------------------------------
>
>                 Key: QDOX-180
>                 URL: http://jira.codehaus.org/browse/QDOX-180
>             Project: QDox
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 1.10
>            Reporter: Antti Karanta
>            Assignee: Robert Scholte
>            Priority: Minor
>             Fix For: 1.11
>
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email