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.
Summary: | [71cat] IllegalStateException: endPosTable already set | ||
---|---|---|---|
Product: | java | Reporter: | monezz <monezz> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 280Z28, adam_myatt, cyhelsky, dcherk, dkonecny, everflux, jbecicka, jglick, jskrivanek, marfous, mjanicek, mkleint, mmirilovic, pekarna, pjiricka, ralphbenjamin, sj-nb, tms1979, tmysik, yardus |
Priority: | P1 | Keywords: | RANDOM |
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 183210 |
Bug Depends on: | 197425 | ||
Bug Blocks: | |||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace Test case |
Description
monezz
2011-11-27 10:42:40 UTC
Created attachment 113550 [details]
stacktrace
Created attachment 113976 [details]
stacktrace
Related to earlier stack overflow I guess.
Created attachment 114002 [details]
stacktrace
Created attachment 114350 [details]
stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210 Created attachment 114633 [details]
stacktrace
opened one file from another repo - this happend when the scanning finished
Created attachment 114860 [details]
stacktrace
switching project groups
Created attachment 116149 [details]
stacktrace
Created attachment 116177 [details]
stacktrace
Created attachment 116337 [details]
stacktrace
Created attachment 116371 [details]
stacktrace
projects scanning afyer startup
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210 Created attachment 116642 [details]
stacktrace
While scanning sources.
Created attachment 116655 [details]
stacktrace
Created attachment 116696 [details]
stacktrace
opened all NetBeans source project in main-golden into netbeans at once. sat waiting for Scanning projects to finish . exception just popped up on its own.
Created attachment 116697 [details]
stacktrace
Created attachment 116981 [details]
stacktrace
Created attachment 117148 [details]
stacktrace
Created attachment 117293 [details]
stacktrace
Created attachment 117537 [details]
stacktrace
After opening j2eeserver module from NetBeans source base.
Hard to fix without a reproducible test case. Are you able to reproduce the issue? If so, could you please create a simple test case and attach it to the issue? Thanks. Happens quite randomly - usually when opening a file from the NB source tree which contains some IDE specific annotations (eg. @NbBundle.Messages) - but not always. Created attachment 118506 [details]
stacktrace
Editing java file.
Created attachment 118550 [details]
stacktrace
scanning at startup
Created attachment 118635 [details]
stacktrace
triggered a hint fix ( FileObject.getUrl->toUrl)
Created attachment 118827 [details]
stacktrace
first start of nb nightly, clean import of nb 7.1 settings, opens maven project, question to install junit appears. clicked on select box of junit version
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=183210 Created attachment 119126 [details]
Test case
I ran into this too when checking the fix for 211882. In my case it seems that when I trigger it it's related to adding implements/overrides buttons that refer to generated source. I wouldn't be able to tell if it's just source on a different path or whatnot.
I altered the 211882 test case slightly and it now triggers this bug consistently. New main class:
----
package testapapplication2;
import testap2.GenerateAClass;
@GenerateAClass(value="GeneratedClass", extendAnnotated=true)
public class TestAPApplication2 {
}
----
This now generates:
----
package testapapplication2;
public class GeneratedClass extends TestAPApplication2 {
}
----
Without "extendAnnotated=true" and, thus, "extends TestAPApplication2", this bug isn't hit. Flipping between "extendAnnotated=true" and false causes the bug to appear and disappear, but note that you have to do a touch-and-save *twice* after altering the annotation parameter to change between those states.
Fixed in jet-main. Thanks for the reproducible test case. http://hg.netbeans.org/jet-main/rev/1dfab9d39a0a Integrated into 'main-golden', will be available in build *201205100400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1dfab9d39a0a User: Dusan Balek <dbalek@netbeans.org> Log: Issue #205582: IllegalStateException: endPosTable already set - fixed. |