QDox
  1. QDox
  2. QDOX-182

Type.toString() and Type.toGenericString() inconsequent for non-array innerclasses

    Details

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

      Description

      public class Outer {
       private Inner ia;
       public class Inner { }
      }
      

      When you call toString() on ia, it'll return Outer$Inner (the FQN)
      but when you call toGenericString() it returns Outer.Inner (the value)

        Activity

        Hide
        Robert Scholte added a comment -

        In QDox the JavaClass follows java.lang.Class including it's toString() implementation.
        QDox' Type contains Type information of the JavaClass, so there's no defenition available in the java-specs.
        The Type.toString() should be an improved version of getValue() because it adds array information. So don't use the FQN here.
        Fixed in rev-678

        Show
        Robert Scholte added a comment - In QDox the JavaClass follows java.lang.Class including it's toString() implementation. QDox' Type contains Type information of the JavaClass, so there's no defenition available in the java-specs. The Type.toString() should be an improved version of getValue() because it adds array information. So don't use the FQN here. Fixed in rev-678
        Robert Scholte made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.11 [ 15653 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: