JDK-8186873 : Possible dead code "com.sun.tools.javac.tree.TreeInfo.isAnonymousDiamond()" which was added in 9
Type:Bug
Component:tools
Sub-Component:javac
Affected Version:10
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2017-08-28
Updated:2017-11-03
Resolved:2017-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Newly added method "com.sun.tools.javac.tree.TreeInfo.isAnonymousDiamond()" in http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/816bd88d33a8
is uncovered by tests
Comments
Jon, do we really need this method?
31-08-2017
Looks like this is dead code. I can't find any usages of the method.
29-08-2017
The method itself is an internal method, so the obvious question is, do we have tests for the language feature for which is internal API is relevant?