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.

Bug 154560 - java.lang.IllegalArgumentException
Summary: java.lang.IllegalArgumentException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 154482 (view as bug list)
Depends on:
Blocks: 134816
  Show dependency tree
 
Reported: 2008-12-04 07:51 UTC by Martin Entlicher
Modified: 2009-02-19 21:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2008-12-04 07:51:23 UTC
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.
Comment 1 Jan Lahoda 2008-12-05 14:45:23 UTC
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.
Comment 2 Matthew Bohm 2008-12-05 19:26:29 UTC
A similar exception can be reproduced via the steps described in issue 134816, hence blocking that issue. Increasing to
P2 due to blocking status.
Comment 3 Dusan Balek 2008-12-08 10:03:26 UTC
*** Issue 154482 has been marked as a duplicate of this issue. ***
Comment 4 Dusan Balek 2008-12-09 08:43:00 UTC
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
Comment 5 Quality Engineering 2008-12-09 18:38:37 UTC
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.