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 20256 - [completion] Even method parameter is not parsed.
Summary: [completion] Even method parameter is not parsed.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 20241 20469 20711 21242 22880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-02-07 13:12 UTC by Martin Roskanin
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
bugfix - patch20256.jar (6.91 KB, application/octet-stream)
2002-02-07 14:18 UTC, Martin Roskanin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2002-02-07 13:12:33 UTC
From nbusers mailing list:

I have the following code (exactly out of the Servlet template, almost):

protected void processRequest(HttpServletRequest request, 
HttpServletResponse response)
throws ServletException, java.io.IOException
{
     HttpServletResponse resp;
     // HERE
}

If, at the location marked HERE (on the next line), I type:

resp.CONTROL-SPACE

I get the usual pop up box of all the fields and methods. However, if I type:

response.CONTROL-SPACE

I get nothing. 
I can hit CONTROL-SPACE until I'm blue in the face and I get 
nothing. I can also type:

request.CONTROL-SPACE

and I get the proper pop-ups again.
Comment 1 Martin Roskanin 2002-02-07 13:17:45 UTC
fixed in [maintrunk]

/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaSyntaxSupport.java,v  <--  JavaSyntaxSupport.java
new revision: 1.20; previous revision: 1.19
Comment 2 Martin Roskanin 2002-02-07 14:17:47 UTC
If you want to patch this problem in NB 3.3.1
please, copy the attached patch patch20256.jar into 
<NBDir>/modules/patches/org-netbeans-modules-editor/ folder
and restart NB.
Comment 3 Martin Roskanin 2002-02-07 14:18:40 UTC
Created attachment 4598 [details]
bugfix - patch20256.jar
Comment 4 dfields 2002-02-07 15:17:03 UTC
*** Issue 20241 has been marked as a duplicate of this issue. ***
Comment 5 Martin Roskanin 2002-02-12 16:24:27 UTC
*** Issue 20469 has been marked as a duplicate of this issue. ***
Comment 6 Martin Roskanin 2002-02-20 14:02:32 UTC
*** Issue 20711 has been marked as a duplicate of this issue. ***
Comment 7 Martin Roskanin 2002-02-26 08:56:21 UTC
DIFF:
http://editor.netbeans.org/source/browse/editor/libsrc/org/netbeans/ed
itor/ext/java/JavaSyntaxSupport.java.diff?r1=1.19&r2=1.20
Comment 8 Martin Roskanin 2002-02-26 09:02:57 UTC
diff of the fix:

RCS file: 
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaSyntaxSupport.java
,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- JavaSyntaxSupport.java    2002/01/08 15:45:15     1.19
+++ JavaSyntaxSupport.java    2002/02/07 13:17:01     1.20
@@ -460,7 +460,8 @@
   if (parenthesisCounter > 0) { // comma is declaration separator in 
parenthesis
       if (parenthesisCounter == 1 && state == 
AFTER_MATCHING_VARIABLE) {
           processDeclaration();
-                        } else if (state != AFTER_EQUAL) {
+                        } 
+                        if (state != AFTER_EQUAL) {
           state = INIT;
       }
   } else { // not in parenthesis
Comment 9 Martin Roskanin 2002-03-06 14:23:32 UTC
*** Issue 21242 has been marked as a duplicate of this issue. ***
Comment 10 Martin Roskanin 2002-03-25 09:01:17 UTC
fixed in [orion_fcs]


/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaSyntaxSupport.java
,v  <--  JavaSyntaxSupport.java
new revision: 1.17.6.2.4.1; previous revision: 1.17.6.2
Comment 11 Jan Lahoda 2002-04-17 09:33:49 UTC
Verified in NB trunk 200204170100 and orion 020416_1.
Comment 12 Martin Roskanin 2002-05-02 14:40:40 UTC
*** Issue 22880 has been marked as a duplicate of this issue. ***
Comment 13 Quality Engineering 2003-06-30 18:13:45 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.