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 140049 - Code completion removes next symbol
Summary: Code completion removes next symbol
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-07-15 12:04 UTC by Alexandr Scherbatiy
Modified: 2008-07-15 18:51 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 Alexandr Scherbatiy 2008-07-15 12:04:41 UTC
Steps to reproduce:

- Create a JavaFX Script file:
---------------------------------
import javafx.scene.transform.*;

var angle1 = 10.0;
var angle2 = 10.0;

var transform = Transform.rotate(angle1, 0, 0);
---------------------------------

- Go to the 'Transform.rotate(angle1, 0, 0);' line
  var transform = Transform.rotate(angle1, 0, 0);
                                    ^
- Press <Ctrl+Space>
- Select 'angle2'
  The coma is removed after the 'angle2' variable:
---------------------------------
var transform = Transform.rotate(angle2 0, 0);
---------------------------------
 
Main.fx:16: Sorry, I was trying to understand an expression but I got confused when I saw '0'.
var transform = Transform.rotate(angle2 0, 0);
1 error
BUILD FAILED (total time: 0 seconds)
Comment 1 Alexandr Scherbatiy 2008-07-15 12:08:50 UTC
One more example:
--------------------------------------------------
import javafx.scene.geometry.*;

Circle{
    
}
--------------------------------------------------
- Go to the 'Circle' class
- Press <Ctrl+Space>
- Select 'Ellipse'

--------------------------------------------------
import javafx.scene.geometry.*;

Ellipse    
}
--------------------------------------------------
- The '{' bracket is removed

Main.fx:14: Sorry, I was trying to understand the module contents but I got confused when I saw '}'.
}
1 error
BUILD FAILED (total time: 0 seconds)


Comment 2 David Strupl 2008-07-15 12:20:35 UTC
Another case for Anton to check after his fix.
Comment 3 Anton Chechel 2008-07-15 13:47:45 UTC
fixed
Comment 4 Lark Fitzgerald 2008-07-15 18:51:20 UTC
Verified using:
Product Version: NetBeans IDE 6.1 (Build 200805300101)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Installer build: NO
fx NB61 continuous plugin: 364