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 66579 - NPE when pasting annotation inside method's body
Summary: NPE when pasting annotation inside method's body
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 10:34 UTC by Max Sauer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (2.85 KB, text/plain)
2005-10-13 15:24 UTC, Milan Kubec
Details
exc stack traces and thread dumps (48.44 KB, text/plain)
2005-10-13 15:30 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2005-10-12 10:34:20 UTC
I accidentally pasted following inside constructor instead of class:
    @Retention(RetentionPolicy.RUNTIME)  
    @Target(ElementType.METHOD)  
    protected @interface Receiver  
    {  
        String value() default "";  
    } 

This results in following exception:

java.lang.NullPointerException
        at java.util.TreeMap.compare(TreeMap.java:1093)
        at java.util.TreeMap.getEntry(TreeMap.java:347)
        at java.util.TreeMap.get(TreeMap.java:265)
...
Other exceptions were also thrown on the background, I'll attach complete stack
traces.


[200510111800, JDK 1.5.0_05, solaris 10/sparc]
Comment 1 Pavel Flaska 2005-10-13 08:21:13 UTC
Max, you forgot to attach promised stack. :-)
Comment 2 Milan Kubec 2005-10-13 15:24:21 UTC
Created attachment 25923 [details]
exc stack trace
Comment 3 Milan Kubec 2005-10-13 15:27:45 UTC
Here it is, just paste the text into a constructor and that's it. I will attach
more exceptions and also thread dump because after the exceptions are thrown the
IDE got frozen for quite a long time.
Comment 4 Milan Kubec 2005-10-13 15:30:51 UTC
Created attachment 25925 [details]
exc stack traces and thread dumps
Comment 5 Max Sauer 2005-10-14 08:31:07 UTC
Thanks Milan, I probably forgot during waiting for IZ query :(
Comment 6 Jan Becicka 2005-11-03 13:16:32 UTC
We have a fix - but we are still working on performance of this fix.
Comment 7 Jan Becicka 2005-11-09 10:23:06 UTC
Fixed in gjast
/cvs/java/external/gjast.jar,v  <--  gjast.jar
new revision: 1.8; previous revision: 1.7
done
Comment 8 Max Sauer 2005-11-11 09:37:03 UTC
Verified in 051111.
Comment 9 Quality Engineering 2007-09-20 12:08:25 UTC
Reorganization of java component