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 198975 - [70cat] IllegalStateException: PLUS
Summary: [70cat] IllegalStateException: PLUS
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-29 00:59 UTC by areeda
Modified: 2011-06-02 21:08 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178404


Attachments
stacktrace (6.18 KB, text/plain)
2011-05-29 01:00 UTC, areeda
Details
stacktrace (6.18 KB, text/plain)
2011-05-29 01:12 UTC, areeda
Details
stacktrace (6.18 KB, text/plain)
2011-05-30 14:51 UTC, areeda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description areeda 2011-05-29 00:59:55 UTC
Build: NetBeans IDE Dev (Build 201105270401)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
jocke: ...

jocke: ....

jocke: ...




Stacktrace: 
java.lang.IllegalStateException: PLUS
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitCompoundAssignment(Flow.java:243)
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.visitCompoundAssignment(Flow.java:175)
   at com.sun.tools.javac.tree.JCTree$JCAssignOp.accept(JCTree.java:1511)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
   at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94)
   at org.netbeans.modules.java.hints.introduce.Flow$VisitorImpl.scan(Flow.java:192)
Comment 1 areeda 2011-05-29 01:00:00 UTC
Created attachment 108574 [details]
stacktrace
Comment 2 areeda 2011-05-29 01:12:02 UTC
Created attachment 108575 [details]
stacktrace

Forgot to comment the last one.  This is happening pretty regularly.
I'm entering java code building a debug string the line looks like
info += ind + "field"
when I put a plus at the end of that statment I get this exception.
Comment 3 areeda 2011-05-30 14:51:00 UTC
Created attachment 108599 [details]
stacktrace

This seems to only occur with String concatenator + not aritmetic addition.
Comment 4 Jan Lahoda 2011-05-31 08:52:51 UTC
Updated Flow pushed into release701 branch:
http://hg.netbeans.org/releases/rev/45663387d032

Fix in trunk:
http://hg.netbeans.org/jet-main/rev/17eb4b1673fa

Thanks for the report.
Comment 5 Quality Engineering 2011-05-31 19:32:19 UTC
Integrated into 'main-golden', will be available in build *201105310954* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/17eb4b1673fa
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198975: preventing IllegalStateException.
Comment 6 Quality Engineering 2011-06-01 13:33:46 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/17eb4b1673fa
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198975: preventing IllegalStateException.
Comment 7 Quality Engineering 2011-06-02 21:08:32 UTC
Integrated into 'main-golden', will be available in build *201106021001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/17eb4b1673fa
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198975: preventing IllegalStateException.