QDox
  1. QDox
  2. QDOX-180

Different interpretation of voids primitivity between QDox and Java reflection

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 1.10.1
    • Component/s: Java API
    • Labels:
      None
    • Number of attachments :
      0

      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 ]
        Hide
        Robert Scholte added a comment -

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

        Show
        Robert Scholte added a comment - 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. ----------------------------------------------------------------------------
        Robert Scholte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Paul Hammant made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Antti Karanta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: