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 150860 - [65cat] AssertionError: line number was negative: -1
Summary: [65cat] AssertionError: line number was negative: -1
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Petr Hejl
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-21 13:08 UTC by sunbiz
Modified: 2009-02-19 20:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 131547


Attachments
stacktrace (3.67 KB, text/plain)
2008-10-21 13:09 UTC, sunbiz
Details
stacktrace (3.67 KB, text/plain)
2008-10-28 10:08 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-10-21 13:08:56 UTC
Build: NetBeans IDE Dev (Build 200810210201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: Find Usages on a blank line in a groovy file threw this exception



Stacktrace: 
java.lang.AssertionError: line number was negative: -1
        at org.netbeans.modules.groovy.editor.api.AstPath.findPathTo(AstPath.java:134)
        at org.netbeans.modules.groovy.editor.api.AstPath.<init>(AstPath.java:102)
        at org.netbeans.modules.groovy.refactoring.GroovyRefactoringElement.<init>(GroovyRefactoringElement.java:67)
        at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:205)
        at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:171)
        at org.netbeans.modules.groovy.editor.api.parser.SourceUtils.runUserActionTask(SourceUtils.java:105)
Comment 1 sunbiz 2008-10-21 13:09:03 UTC
Created attachment 72385 [details]
stacktrace
Comment 2 sunbiz 2008-10-28 10:08:31 UTC
Build: NetBeans IDE Dev (Build 200810240201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 
Find Usages on an empty line in groovy file

Stacktrace: 
java.lang.AssertionError: line number was negative: -1
        at org.netbeans.modules.groovy.editor.api.AstPath.findPathTo(AstPath.java:134)
        at org.netbeans.modules.groovy.editor.api.AstPath.<init>(AstPath.java:102)
        at org.netbeans.modules.groovy.refactoring.GroovyRefactoringElement.<init>(GroovyRefactoringElement.java:67)
        at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:205)
        at org.netbeans.modules.groovy.refactoring.ui.GroovyRefactoringActionsProvider$TextComponentTask.run(GroovyRefactoringActionsProvider.java:171)
        at org.netbeans.modules.groovy.editor.api.parser.SourceUtils.runUserActionTask(SourceUtils.java:105)
Comment 3 sunbiz 2008-10-28 10:08:40 UTC
Created attachment 72741 [details]
stacktrace
Comment 4 Petr Hejl 2008-11-24 15:57:23 UTC
This is not reproducible on trunk. Please reopen if it occurs again.