Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Below testcases are failing:
[junit] Testcase: testVarCompoundDeclaration1(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest): FAILED
[junit] Testcase: testVarCompoundDeclaration2(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest): FAILED
[junit] Testcase: testVarCompoundDeclaration3(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest): FAILED
[junit] Testcase: testVarCompoundDeclaration4(org.netbeans.api.java.source.gen.VarCompoundDeclarationTest): FAILED
[junit] Testcase: testCase1(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase2(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase3(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase5(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase6(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase7(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase8(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase9(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
[junit] Testcase: testCase10(org.netbeans.modules.java.hints.errors.VarCompDeclarationTest): FAILED
Issue Description:
Javac Issue description(from Vikas) :
Sample code: var v1 = 10, v2 = 11;
Compilation tree details with jdk-10:
In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. int v2 = 11;
statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to first tree of block i.e int v1 = 10;
Compilation tree details with jdk-11:
In this case the parent bloc tree has two trees : 1. int v1 = 10; 2. var v2 = 11;
statementPath.getLeaf() i.e ctx.getPath().getLeaf() refers to second tree of block i.e var v2 = 11;
Attachments
Issue Links
- links to