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 77528

Summary: The source file not parsed when needed.
Product: java Reporter: ehucka <ehucka>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: npe's stacktrace

Description ehucka 2006-06-07 14:39:27 UTC
After I invoke a code template from CC e.g. for cycle it throws npe, selects the
context and moves cursor at begin of the context word.
Comment 1 ehucka 2006-06-07 14:40:24 UTC
Created attachment 30861 [details]
npe's stacktrace
Comment 2 Jiri Prox 2006-06-08 08:38:31 UTC
Where did you use the code template? There already reported NPE when using code
tempates in bad scopes (issue 72301)
Comment 3 ehucka 2006-06-08 10:40:29 UTC
I've created a new method and write 'for':

public void method() {
    for|
}

invoked CC and press enter on appropriate for cycle.
Comment 4 Jiri Prox 2006-06-08 12:57:28 UTC
This is caused by slow parsing of java file. The context of new method is not
set fast enough and the the code template is used in old scope (the NPE when
calling code templates in wrong context is already filed). This can result in
other problems (like wrong CC).

Changing the summary and reassigning to java
Comment 5 Jan Becicka 2006-10-26 16:28:02 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 6 ehucka 2006-11-30 16:46:18 UTC
closed
Comment 7 Quality Engineering 2007-09-20 12:48:18 UTC
Reorganization of java component