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 176955 - AssertionError at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.getJavacTask
Summary: AssertionError at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorI...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 124102
  Show dependency tree
 
Reported: 2009-11-16 16:23 UTC by i30817
Modified: 2009-12-14 11:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161963


Attachments
stacktrace (3.57 KB, text/plain)
2009-11-16 16:23 UTC, i30817
Details
stacktrace (3.57 KB, text/plain)
2009-11-18 08:16 UTC, aldobrucale
Details
stacktrace (3.58 KB, text/plain)
2009-12-01 13:24 UTC, Jesse Glick
Details
stacktrace (3.39 KB, text/plain)
2009-12-14 11:46 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i30817 2009-11-16 16:23:31 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4251-on-091107)
VM: Java HotSpot(TM) Client VM, 14.0-b13, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b04
OS: Windows XP, 5.1, x86

User Comments:
GUEST: Inner to outer class.

GUEST: Refactoring inner to outer class.

i30817: extracting a 

private static abstract class DocumentAdapter implements DocumentListener (from swing) with empty metods inner to outer did this.



Stacktrace: 
java.lang.AssertionError
        at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.getJavacTask(JavaSource.java:732)
        at org.netbeans.modules.java.source.pretty.VeryPretty.<init>(VeryPretty.java:162)
        at org.netbeans.modules.java.source.pretty.VeryPretty.<init>(VeryPretty.java:168)
        at org.netbeans.modules.java.source.pretty.VeryPretty.printAnnotationsFormatted(VeryPretty.java:1584)
        at org.netbeans.modules.java.source.pretty.VeryPretty.printAnnotations(VeryPretty.java:1607)
        at org.netbeans.modules.java.source.pretty.VeryPretty.visitMethodDef(VeryPretty.java:560)
Comment 1 i30817 2009-11-16 16:23:34 UTC
Created attachment 91139 [details]
stacktrace
Comment 2 aldobrucale 2009-11-18 08:16:18 UTC
Created attachment 91262 [details]
stacktrace
Comment 3 Jesse Glick 2009-12-01 13:24:48 UTC
Created attachment 91959 [details]
stacktrace
Comment 4 Jesse Glick 2009-12-01 13:25:30 UTC
Move inner to outer refactoring seems completely broken because of this.
Comment 5 Jan Lahoda 2009-12-02 05:49:08 UTC
http://hg.netbeans.org/jet-main/rev/937f1a586924
Comment 6 Pavel Flaska 2009-12-02 06:42:04 UTC
The patch is fine I think.
Comment 7 Jiri Prox 2009-12-02 08:09:58 UTC
verified in trunk, please integrate the fix into release68
Comment 8 Jan Lahoda 2009-12-02 20:18:26 UTC
Fixed in release68:
http://hg.netbeans.org/release68?cmd=changeset;node=01731b363d1e
Comment 9 Jiri Prox 2009-12-03 03:38:41 UTC
verified in 6.8
Comment 10 Quality Engineering 2009-12-03 04:53:18 UTC
Integrated into 'main-golden', will be available in build *200912030200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/937f1a586924
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #176955: always passing CompilationInfo to VeryPretty - this is needed since fix for #124102.
Comment 11 misterm 2009-12-14 11:46:00 UTC
Created attachment 92554 [details]
stacktrace