QDox
  1. QDox
  2. QDOX-155

JavaField#getInitializationExpression() is wrong for char

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Vincent Siveton added a comment -

      Small test case:

          public static final char SEPARATOR = ',';
      
      clazz.getFieldByName( "SEPARATOR" ).getInitializationExpression()= ',"
      

      Should be with single quote.

      I attached the test case.

      Show
      Vincent Siveton added a comment - Small test case: public static final char SEPARATOR = ','; clazz.getFieldByName( "SEPARATOR" ).getInitializationExpression()= '," Should be with single quote. I attached the test case.
      Vincent Siveton made changes -
      Field Original Value New Value
      Attachment TestQDOX155.java [ 40762 ]
      Hide
      Robert Scholte added a comment -

      fix + test committed

      r583 | rfscholte | 2009-03-19 21:43:40 CET

      fix for qdox-155: char field
      ----------------------------------------------------------------------------

      Show
      Robert Scholte added a comment - fix + test committed r583 | rfscholte | 2009-03-19 21:43:40 CET fix for qdox-155: char field ----------------------------------------------------------------------------
      Robert Scholte made changes -
      Resolution Fixed [ 1 ]
      Status Open [ 1 ] Closed [ 6 ]
      Fix Version/s 1.10 [ 15020 ]
      Assignee Robert Scholte [ rfscholte ]
      Paul Hammant made changes -
      Status Closed [ 6 ] Reopened [ 4 ]
      Resolution Fixed [ 1 ]
      Paul Hammant made changes -
      Status Reopened [ 4 ] Closed [ 6 ]
      Fix Version/s 1.10 [ 15020 ]
      Resolution Fixed [ 1 ]
      Fix Version/s 1.9.1 [ 15252 ]

        People

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

          Dates

          • Created:
            Updated:
            Resolved: