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.
Steps to reproduce: 1.) Create brand new Groovy Script 2.) Paste this code-snipped on the end (or just replace everything with it): 7.each { class One { def aMethod() { } } you'll instantly get: Annotation: An error occurred during parsing of 'C:\prj\GroovyApplication1\src\groovyapplication1\newGroovyScript5.groovy'. Please report a bug against ruby and attach dump file 'C:\Documents and Settings\schmidtm\.netbeans\dev\var\log\newGroovyScript5_24.dump'. Annotation: An error occurred during parsing of 'C:\prj\GroovyApplication1\src\groovyapplication1\newGroovyScript5.groovy'. Please report a bug against ruby and attach dump file 'C:\Documents and Settings\schmidtm\.netbeans\dev\var\log\newGroovyScript5_24.dump'. An error occurred during parsing of 'C:\prj\GroovyApplication1\src\groovyapplication1\newGroovyScript5.groovy'. Please report a bug against ruby and attach dump file 'C:\Documents and Settings\schmidtm\.netbeans\dev\var\log\newGroovyScript5_24.dump'. An error occurred during parsing of 'C:\prj\GroovyApplication1\src\groovyapplication1\newGroovyScript5.groovy'. Please report a bug against ruby and attach dump file 'C:\Documents and Settings\schmidtm\.netbeans\dev\var\log\newGroovyScript5_24.dump'. Caused: java.lang.AssertionError at org.netbeans.modules.groovy.editor.parser.GroovyParser.sanitizeSource(GroovyParser.java:227) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseBuffer(GroovyParser.java:478) at org.netbeans.modules.groovy.editor.parser.GroovyParser.sanitize(GroovyParser.java:360) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseBuffer(GroovyParser.java:486) at org.netbeans.modules.groovy.editor.parser.GroovyParser.sanitize(GroovyParser.java:352) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseBuffer(GroovyParser.java:486) at org.netbeans.modules.groovy.editor.parser.GroovyParser.sanitize(GroovyParser.java:344) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseBuffer(GroovyParser.java:486) at org.netbeans.modules.groovy.editor.parser.GroovyParser.sanitize(GroovyParser.java:334) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseBuffer(GroovyParser.java:569) at org.netbeans.modules.groovy.editor.parser.GroovyParser.parseFiles(GroovyParser.java:117) at org.netbeans.napi.gsfret.source.Source.moveToPhase(Source.java:880) at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1192) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) [catch] at java.lang.Thread.run(Thread.java:595)
Fixed. http://hg.netbeans.org/main/contrib/rev/6e96d862019f
Integrated into 'main-golden', available in NB_Trunk_Production #206 build Changeset: http://hg.netbeans.org/main/rev/6b9af39dddb0 User: Martin Adamek <martin_adamek@netbeans.org> Log: #126822: AssertionError in GroovyParser.sanitizeSource
v.