vikas kumar prabhakar created NETBEANS-1251:
-----------------------------------------------

             Summary: nb-javac 11 testcase failure : Compound var declaration
                 Key: NETBEANS-1251
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1251
             Project: NetBeans
          Issue Type: Bug
            Reporter: vikas kumar prabhakar


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;



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to