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 239616

Summary: write back class method from TIP
Product: php Reporter: kastin
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description kastin 2013-12-18 15:47:44 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 3.2.0-55-generic-pae running on i386
Java; VM; Vendor = 1.7.0_25
Runtime = OpenJDK Client VM 23.7-b01


I have Singleton class "S". When I want to get instance of S, I put "S::getInstance();". 
 But lets write sth like that: "S::getInstance;" (without brackets);

1) I click: "S::{here}getInstance;", then "Ctril+SPACE" to get TIP window, I see "getInstance()".
2) I type "ENTER" selected method (in TIP) to add brackets after my "S::getInstance;"
3) Instead of "S::getInstance();" I have: "S::getInstance()getInstance;".

Before editor put method from TIP, It could be check if this method was added there (it yes, only compleate it - in my case just add "()").
Comment 1 kastin 2013-12-18 15:47:48 UTC
Created attachment 143308 [details]
IDE log
Comment 2 Ondrej Brejla 2014-01-06 12:13:52 UTC
Same behavior as is in Java editor, it's there for years. P4. Thanks.