ARUNAVA SINHA created NETBEANS-2217:
---------------------------------------
Summary: Probable Runtime Exception scenarios in NB-11.0
Key: NETBEANS-2217
URL: https://issues.apache.org/jira/browse/NETBEANS-2217
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.0
Reporter: ARUNAVA SINHA
If someone is running NB in JDK-12 with or with nb-javac plugin(1.6) for
NB-11.0 , he may encounter some issue if it hits code at particular line number
as mentioned below.
1. org.netbeans.modules.java.source.builder.TreeFactory
1a. line 198: return make.at(NOPOS).Break(n);
error :
incompatible types: Name cannot be converted to JCExpression
1b. line 223: return make.at(NOPOS).Case((JCExpression)expression, lb.toList());
error:
method Case in class TreeMaker cannot be applied to given types;
required: CaseKind,List<JCExpression>,List<JCStatement>,JCTree
found: JCExpression,List<JCStatement>
reason: actual and formal argument lists differ in length
2. org.netbeans.modules.java.source.transform.ImmutableTreeTranslator
3. org.netbeans.modules.java.source.transform.TreeDuplicator
error :
ImmutableTreeTranslator is not abstract and does not override abstract method
visitSwitchExpression(SwitchExpressionTree,Object) in TreeVisitor
TreeDuplicator is not abstract and does not override abstract method
visitSwitchExpression(SwitchExpressionTree,Object) in TreeVisitor
4. org.netbeans.modules.java.source.save.CasualDiff
line 5734 : private boolean matchCase(JCCase t1, JCCase t2) {
return treesMatch(t1.pat, t2.pat) && listsMatch(t1.stats, t2.stats);
}
Error: cannot find symbol
symbol: variable pat
location: variable t1 of type JCCase
--
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