QDox
  1. QDox
  2. QDOX-160

error parsing clauses with indexOf

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      Java program in Linux.
    • Number of attachments :
      0

      Description

      when exist clause in body of method like this:

      String str = "10$";
      int count = Integer.valueOf (str.substring (0, str.indexOf ('$'))).intValue();

      after parsing to get different source code:

      int count = Integer.valueOf (str.substring (0, str.indexOf ('$"))).intValue();

      with using JavaMethod.getSourceCode; changed ' -> "

        Activity

        Hide
        Robert Scholte added a comment -

        duplicate of QDOX-155

        Show
        Robert Scholte added a comment - duplicate of QDOX-155
        Robert Scholte made changes -
        Field Original Value New Value
        Fix Version/s 1.9.1 [ 15252 ]
        Assignee Robert Scholte [ rfscholte ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Robert Scholte made changes -
        Fix Version/s 1.10 [ 15020 ]
        Fix Version/s 1.9.1 [ 15252 ]
        Paul Hammant made changes -
        Resolution Duplicate [ 3 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Paul Hammant made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Fix Version/s 1.9.1 [ 15252 ]
        Fix Version/s 1.10 [ 15020 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: