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

Erroneous AST missing modifiers for partial input

XMLWordPrintable

    • b14

        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.

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

                Created:
                Updated:
                Resolved: