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.
(own fresh build, 1.6.0-beta2-b85, Substance L&F, Gnome 2.12.3, Slackware 10.2) I just did 'fori<space>' to get for loop template and attached NPE was thrown.
Created attachment 30762 [details] NPE
PS: on the second try it works as usually. Maybe it was because I: 1) fastly create: private static final int NUMBER_OF_PHILOSOPHERS = 5; 2) And then I go fastly to main method and type 'fori<space>' so the java-model might not have been fully synchronized?
Yes, you're right. It's caused be fast creating new method and using the abbreviation in it. The source in not parsed at that time and abbreviation is called in wrong context (class scope, not method scope). The exception thrown when calling abbrev. in wrong context is already filed as issue 72301. The 2ns problem - not parsing source when needed - is also reported (can not find number now) Thanks for your report *** This issue has been marked as a duplicate of 72301 ***
Ok, thanks.