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 205609 - AssertionError at com.sun.tools.javac.util.Assert.error
Summary: AssertionError at com.sun.tools.javac.util.Assert.error
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 13:09 UTC by azizi
Modified: 2013-06-13 01:16 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180957


Attachments
stacktrace (4.02 KB, text/plain)
2011-11-28 13:09 UTC, azizi
Details
stacktrace (4.02 KB, text/plain)
2011-11-28 13:43 UTC, azizi
Details
stacktrace (4.40 KB, text/plain)
2012-09-23 09:44 UTC, Chiana
Details
stacktrace (4.40 KB, text/plain)
2012-09-23 09:47 UTC, Chiana
Details
stacktrace (4.40 KB, text/plain)
2012-09-23 09:50 UTC, Chiana
Details
stacktrace (4.12 KB, text/plain)
2013-06-04 15:28 UTC, Egor Ushakov
Details
stacktrace (4.00 KB, text/plain)
2013-06-05 17:55 UTC, Vladimir Voskresensky
Details
stacktrace (4.00 KB, text/plain)
2013-06-06 08:07 UTC, Vladimir Voskresensky
Details
stacktrace (3.87 KB, text/plain)
2013-06-07 13:22 UTC, Vladimir Voskresensky
Details
stacktrace (3.87 KB, text/plain)
2013-06-11 12:34 UTC, Alexander Simon
Details
stacktrace (3.87 KB, text/plain)
2013-06-11 12:40 UTC, Alexander Simon
Details
stacktrace (4.00 KB, text/plain)
2013-06-11 16:31 UTC, Egor Ushakov
Details
stacktrace (4.12 KB, text/plain)
2013-06-12 08:43 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azizi 2011-11-28 13:09:54 UTC
Build: NetBeans Platform 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
azizi: public int sumNDispatch(void){
                
        int sum=0;
        
        return sum;
    }
    
in editor  i try to solve the problem from the above code that told me <identifire> expected 
but it dose not solve and when  i try to save all files it show me that exception.




Stacktrace: 
java.lang.AssertionError
   at com.sun.tools.javac.util.Assert.error(Assert.java:126)
   at com.sun.tools.javac.util.Assert.checkNull(Assert.java:53)
   at com.sun.tools.javac.jvm.Code.addLocalVar(Code.java:1853)
   at com.sun.tools.javac.jvm.Code.newLocal(Code.java:1960)
   at com.sun.tools.javac.jvm.Gen.visitVarDef(Gen.java:1017)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:730)
Comment 1 azizi 2011-11-28 13:09:56 UTC
Created attachment 113577 [details]
stacktrace
Comment 2 azizi 2011-11-28 13:43:08 UTC
Created attachment 113581 [details]
stacktrace

it can be resulve by removing "void" from function entry
public int sumNDispatch(void){ ...
Comment 3 Chiana 2012-09-23 09:44:10 UTC
Created attachment 124769 [details]
stacktrace

The attempt was to rename a file. Selected the "Files" tab right-clicked the file and selected "Refactor->Rename" and this was thrown.
Comment 4 Chiana 2012-09-23 09:47:09 UTC
Created attachment 124770 [details]
stacktrace

Tried to rename a file. After short while this was thrown (that is after a few seconds of "thinking")
Comment 5 Chiana 2012-09-23 09:50:10 UTC
Created attachment 124771 [details]
stacktrace

Renamed a file, I thought it was done but after a few seconds this was thrown
Comment 6 Egor Ushakov 2013-06-04 15:28:28 UTC
Created attachment 135338 [details]
stacktrace

during scanning
Comment 7 Vladimir Voskresensky 2013-06-05 17:55:28 UTC
Created attachment 135404 [details]
stacktrace

open java file
Comment 8 Vladimir Voskresensky 2013-06-06 08:07:28 UTC
Created attachment 135420 [details]
stacktrace

opened ide
Comment 9 Vladimir Voskresensky 2013-06-07 13:22:29 UTC
Created attachment 135509 [details]
stacktrace

external changes
Comment 10 Alexander Simon 2013-06-11 12:34:35 UTC
Created attachment 135633 [details]
stacktrace

open file
Comment 11 Alexander Simon 2013-06-11 12:40:36 UTC
Created attachment 135634 [details]
stacktrace

open file in editor
Comment 12 Egor Ushakov 2013-06-11 16:31:36 UTC
Created attachment 135651 [details]
stacktrace

scanning
Comment 13 Vladimir Voskresensky 2013-06-11 16:50:38 UTC
Dusan, any chances to fix it? It is already ~40 dups
Comment 14 Egor Ushakov 2013-06-12 08:43:36 UTC
Created attachment 135668 [details]
stacktrace

opened a project
Comment 16 Quality Engineering 2013-06-13 01:16:23 UTC
Integrated into 'main-golden', will be available in build *201306122301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/30b5bf712a37
User: Dusan Balek <dbalek@netbeans.org>
Log: Issues #205609, #231034, and 231049 fixed.