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

Detect inferred local variable types in AST

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 10, 11, 17, 18
    • tools
    • None

    Description

      The implementation of local variable type inference adds the inferred type to the AST: http://hg.openjdk.java.net/jdk10/master/rev/48ec75306997#l8.23

      As discussed in JDK-8024098, it would be nice for the AST to more closely model the source code, including whether a particular local variable's type was explicit in source or inferred from a use of var; ideally pretty-printing a variable declaration would preserve whether or not the source used var.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              cushon Liam Miller-Cushon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: