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

ErroneousTree with start position -1

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • 18
    • tools
    • None
    • b11

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: