This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm not sure if I already submitted this in some issue, but parsing statements without semicolon produce java.lang.IllegalArgumentException - http://www.netbeans.org/nonav/issues/showattachment.cgi/74448/JSPExc.txt Can be reproduced by calling something like TreeUtilities.parseStatement("{ a.contains(b) }"); A workaround in debugger applied in issue #154406.
The exception is certainly not correct and should be fixed, but the fix in debugger is also correct, IMO - a syntactically correct statements/expressions are preferred over syntactically incorrect statements/expression in parseStatement/parseExpression.
A similar exception can be reproduced via the steps described in issue 134816, hence blocking that issue. Increasing to P2 due to blocking status.
*** Issue 154482 has been marked as a duplicate of this issue. ***
Fixed. changeset 93d1bd303ad7 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=93d1bd303ad7 changeset a85cf2861572 in main details: http://hg.netbeans.org/main?cmd=changeset;node=a85cf2861572
Integrated into 'main-golden', will be available in build *200812091520* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a85cf2861572 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #154560: java.lang.IllegalArgumentException - fixed.