Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8271928

ErroneousTree with start position -1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • 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.

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

              Created:
              Updated:
              Resolved: