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 242864 - AssertionError: Value of x -1
Summary: AssertionError: Value of x -1
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 249393 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-13 14:13 UTC by IrianR
Modified: 2017-11-22 20:14 UTC (History)
42 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208359


Attachments
stacktrace (4.73 KB, text/plain)
2014-03-13 14:13 UTC, IrianR
Details
stacktrace (4.73 KB, text/plain)
2014-03-31 10:34 UTC, IrianR
Details
stacktrace (4.73 KB, text/plain)
2014-03-31 10:37 UTC, IrianR
Details
stacktrace (4.73 KB, text/plain)
2014-03-31 13:34 UTC, davideconsonni
Details
stacktrace (4.73 KB, text/plain)
2014-04-03 07:04 UTC, Exceptions Reporter
Details
stacktrace (4.81 KB, text/plain)
2014-07-31 10:01 UTC, J Bachorik
Details
stacktrace (4.73 KB, text/plain)
2014-09-11 13:20 UTC, adithyank
Details
stacktrace (4.94 KB, text/plain)
2015-08-18 11:13 UTC, stefan79
Details
stacktrace (5.76 KB, text/plain)
2015-09-03 14:24 UTC, stefan79
Details
stacktrace (5.76 KB, text/plain)
2015-09-07 09:15 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IrianR 2014-03-13 14:13:30 UTC
This bug was originally marked as duplicate of bug 238037, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201403120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
IrianR: Using Go to Type, the error popped up before selecting a class from the popup list with no other file opened in the editor.

davideconsonni: scanning classpath




Stacktrace: 
java.lang.AssertionError: Value of x -1
   at com.sun.tools.javac.util.Assert.error(Assert.java:133)
   at com.sun.tools.javac.util.Assert.check(Assert.java:94)
   at com.sun.tools.javac.util.Bits.incl(Bits.java:186)
   at com.sun.tools.javac.comp.Flow$AbstractAssignAnalyzer.initParam(Flow.java:1822)
   at com.sun.tools.javac.jvm.Gen$LVTAssignAnalyzer.initParam(Gen.java:2863)
   at com.sun.tools.javac.comp.Flow$AbstractAssignAnalyzer.visitMethodDef(Flow.java:1776)
Comment 1 IrianR 2014-03-13 14:13:32 UTC
Created attachment 145993 [details]
stacktrace
Comment 2 IrianR 2014-03-31 10:34:04 UTC
Created attachment 146426 [details]
stacktrace

moving a source root up in the sources view during debugging.
Comment 3 IrianR 2014-03-31 10:37:04 UTC
Created attachment 146428 [details]
stacktrace

this error popped up while i was filling up the previouse report id #719325, most propably it's a duplicate of this error, but it's strange that it popped up while i was not done filling the other report.
Comment 4 davideconsonni 2014-03-31 13:34:04 UTC
Created attachment 146435 [details]
stacktrace

editing a servlet filter
Comment 5 Exceptions Reporter 2014-04-03 07:04:17 UTC
Created attachment 146520 [details]
stacktrace

I opened the current netty project.
Comment 6 J Bachorik 2014-07-31 10:01:53 UTC
Created attachment 148437 [details]
stacktrace

IDE was rescanning sources
Comment 7 adithyank 2014-09-11 13:20:07 UTC
Created attachment 149141 [details]
stacktrace

closed a svn diff tab
Comment 8 Dusan Balek 2015-01-05 11:05:25 UTC
*** Bug 249393 has been marked as a duplicate of this bug. ***
Comment 9 stefan79 2015-08-18 11:13:08 UTC
Created attachment 155422 [details]
stacktrace

???
Comment 10 zmirc 2015-08-28 13:40:53 UTC
Hey, guys! It just happened to me.

I have 3 Java Maven projects: api (web), shared (library) and analyzer (web).
The shared project contains code which is shared between api and analyzer.
Now I was renaming the name of a method from a class inside the shared project.
That's when the error appeared.

Note: All Java files of those 3 projects were saved and compilable (so with no compilation error marks inside any of them).

Stacktrace and messages.log: http://statistics.netbeans.org/analytics/exception.do?id=791303
Comment 11 zmirc 2015-08-28 13:46:14 UTC
(In reply to zmirc from comment #10)
> Hey, guys! It just happened to me.
> 
> I have 3 Java Maven projects: api (web), shared (library) and analyzer (web).
> The shared project contains code which is shared between api and analyzer.
> Now I was renaming the name of a method from a class inside the shared
> project.
> That's when the error appeared.
> 
> Note: All Java files of those 3 projects were saved and compilable (so with
> no compilation error marks inside any of them).
> 
> Stacktrace and messages.log:
> http://statistics.netbeans.org/analytics/exception.do?id=791303

Important: 
I have just restarted NetBeans (DEV 201508230002) and tried again. It worked. 
I could rename now that method name.
Comment 12 stefan79 2015-09-03 14:24:31 UTC
Created attachment 155864 [details]
stacktrace

Exception occured while background-Scanning.
Comment 13 stefan79 2015-09-07 09:15:55 UTC
Created attachment 155938 [details]
stacktrace

Exception occured while editing in XML-File.