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 222364

Summary: Method incorrectly replaced by CC
Product: javascript Reporter: Tomas Mysik <tmysik>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Mysik 2012-11-19 09:24:07 UTC
The "|" represents cursor.

Sample:
document.getElementsBy|Name('a'); // <- invoke CC here and complete "getElementsByClassName" method

Result:
document.getElementsByClassName()Name('a');

Expected:
document.getElementsByClassName('a');

Thanks.

Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Updates: NetBeans IDE is updated to version , NetBeans 7.3 Beta 2
Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_35-b10
System: Linux version 3.5.0-18-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Petr Pisl 2012-11-19 10:30:17 UTC
The current behavior is the same as in Java and similar to PHP. I agree that the replacing should be clever. I will keep it open as reminder to improve it.
Comment 2 Tomas Mysik 2012-11-19 10:49:47 UTC
Thanks a lot.