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 198139 - Extra space after code completion
Summary: Extra space after code completion
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-04-27 14:42 UTC by cordisvictor
Modified: 2011-05-03 11:08 UTC (History)
0 users

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 cordisvictor 2011-04-27 14:42:32 UTC
Example usage:
I want to use code completion to write the following line:

    String s= new String("bla bla");

After completing the argument(s) given to the constructor,
an extra space is appended to the line.

Expected:
    "String s= new String("bla bla")"

Actual:
    "String s= new String("bla bla") "

Further examples:
    "new java.util.Random(seed) "
Comment 1 cordisvictor 2011-04-27 20:07:22 UTC
Additional info:

I cannot reproduce this netbeans 7.0 bug under linux.

Maybe this is caused by the 6.9.1 imported prefs:

under linux I did a fresh install (removed all what remained of 6.9.1)
under windows I did not remove the .netbeans dir

Anyways, I didn't create any custom editor prefs...
Comment 2 Dusan Balek 2011-04-29 10:37:01 UTC
Is the issue reproducible under Windows when NB is started with a fresh userdir?
Comment 3 cordisvictor 2011-04-29 11:51:30 UTC
Sorry, I retried my described scenario (which consistently reproduced the bug
on Windows) on both Windows and Linux and I didn't manage to reproduce this bug.


As a remark, since 7.0 small bugs like this one keep going on randomly ...
just now as I tried to reproduce this bug on both platforms,
on Linux I got a strange anomaly when creating a new dummy java app project:

The "project location" textbox did not update after browsing
and the finish button was disabled.
The generated project name was also "com.myapp" in stead of javaapp.JavaApp
(I did not select a web app)

=> these bugs appear randomly and are not platform related,
   they are solved by an IDE restart
=> the IDE state must get corrupted in some way ...

==> I think this bug may be closed because the fault must be
    something bigger ...
Comment 4 Dusan Balek 2011-05-03 11:08:03 UTC
OK - closing as WORKSFORME now.