Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8044853 Attr synthesizes nullcheck tree nodes
  3. JDK-8192893

Release Note: New Class AST Node With enclosing Instance

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P3
    • Resolution: Delivered
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: tools
    • Subcomponent:
    • Verification:
      Verified

      Description

      New Class AST nodes with an enclosing instance that incorrectly return a null have been fixed. In some cases, the `getEnclosingExpression()` method of the NewClassTree AST node was returning null for code like:

      ```
      <enclosing>.new <Class>(...) { ... }
      ```

      This has been fixed, and getEnclosingExpression() now returns the enclosing expression.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: