ErroneousTree with start position -1

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: tools
    • None
    • b11

      Consider code like:
      ---
      package test;
          public static void test() {
              return test;
          }
      ---

      This will produce two erroneous trees, and the second one only has empty modifiers as its erroneous sub-trees, and as a consequence the start position of the erroneous tree will be -1, which leads to various bad effects. It would be better to use tree.pos.

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: