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 74137 - CC provides invalid fields
Summary: CC provides invalid fields
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 74012
  Show dependency tree
 
Reported: 2006-03-29 12:00 UTC by Jiri Prox
Modified: 2007-11-05 13:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-03-29 12:00:48 UTC
NetBeans IDE Dev (Build 200603270859)
1.6.0-beta2; Java HotSpot(TM) Client VM 1.6.0-beta2-b77
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

CC in the class scope provides fileds which are used as mathods arguments.

Steps to reproduce:
1) create class:
public class Main {       
    public static void main(String[] args) {    
    }
     
}

2) put caret on 4th line (empty one)
3) press crtl-enter
-> CC provides also field 'args'
Comment 1 Dusan Balek 2006-03-30 13:10:08 UTC
Fixed in [maintrunk].

Checking in src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java,v
 <--  NbJavaJMISyntaxSupport.java
new revision: 1.25; previous revision: 1.24
done
Comment 2 Miloslav Metelka 2006-03-31 14:55:53 UTC
Fix integrated into release55 branch:

Checking in src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java,v
 <--  NbJavaJMISyntaxSupport.java
new revision: 1.10.2.2.2.1; previous revision: 1.10.2.2
Comment 3 Jiri Prox 2006-04-03 13:16:34 UTC
Verified in trunk and 5.5 branch
Comment 4 Dusan Balek 2006-04-05 10:33:24 UTC
Changing status whiteboard.