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

Erroneous AST missing modifiers for partial input

    XMLWordPrintable

Details

    • b14

    Backports

      Description

        Consider code like:
        ---
        package test;
        public
        ---

        The CompilationUnitTree for this (obviously erroneous) code used to contain an ErroneousTree, holding the modifiers contains "public".

        After JDK-8305671, the modifiers are simply thrown away, and are lost, which is causing issues to some Trees API clients.

        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: