-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 10, 11, 17, 18
-
Component/s: tools
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.
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.
- csr for
-
JDK-8376736 AST model for 'var' variables should more closely adhere to the source code
-
- Proposed
-
- relates to
-
JDK-8024098 javac syntax tree should more closely model the source code
-
- Open
-
-
JDK-8031725 No way to detect synthetic com.sun.source.tree.Tree's
-
- Closed
-