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 143318 - AssertionError at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run
Summary: AssertionError at org.netbeans.modules.java.hints.errors.AddParameterOrLocalF...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-08 16:09 UTC by Jiri Prox
Modified: 2009-04-13 13:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 88263


Attachments
stacktrace (701 bytes, text/plain)
2008-08-08 16:09 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-08-08 16:09:23 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808060301)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Linux, 2.6.22-15-generic, i386

User Comments: 
AE when calling quicky Introduce local varialbe hint several times

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run(AddParameterOrLocalFix.java:132)
        at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run(AddParameterOrLocalFix.java:119)
        at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:916)
        at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix.implement(AddParameterOrLocalFix.java:118)
        at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:551)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
Comment 1 Jiri Prox 2008-08-08 16:09:30 UTC
Created attachment 66910 [details]
stacktrace
Comment 2 Max Sauer 2008-08-11 09:31:53 UTC
Do you have any example source of better steps to reproduce, please, Jirko? Thanks.
Comment 3 Jiri Prox 2008-08-11 09:43:13 UTC
the code should look like this:
public class Main {
    public void method() {
        a = 3;
        b = 3;
    }
}

Steps to reproduce:
1) use hint Create local variable for the first line
2) go quickly to second line and use the same hint (~0.5s)
Comment 4 Max Sauer 2008-08-11 16:47:39 UTC
Thanks Jirko, I must have been to slow. Unfortunately, a lot of work has to be done in order to repair this. I'm lowering this to P4, since special effort is 
necessary to archive this.
Comment 5 Jiri Prox 2008-08-12 07:43:17 UTC
ok, I agree with downgrading to P4, it's not so common scenario and if there are no others hidden problems
Comment 6 Max Sauer 2008-08-12 12:46:29 UTC
Fixed, could you please verify, Jirko?
---
http://hg.netbeans.org/main/rev/2f27706ce2a7
Comment 7 Quality Engineering 2008-08-14 15:48:07 UTC
Integrated into 'main-golden', available in build *200808141419* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/2f27706ce2a7
User: Max Sauer <msauer@netbeans.org>
Log: #143318: AssertionError at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run