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 236996 - Keyword "instanceof" should not be added after a method by CC outside flow control statement.
Summary: Keyword "instanceof" should not be added after a method by CC outside flow co...
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 16:49 UTC by MackSix
Modified: 2016-07-21 21:44 UTC (History)
1 user (show)

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 MackSix 2013-10-10 16:49:45 UTC
Typing Ctrl+Space after any method inserts the keyword "instanceof". This should not happen unless the method is being added to a flow control statement.

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b50
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b108
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2013-10-10 16:55:33 UTC
I guess I should clarify this further. What I mean is a method invocation. 

Example:

String.valueOf(1)|

Where "|" is the cursor. Pressing Ctrl+Space results in:

String.valueOf(1)instanceof

It should not do that.
Comment 2 Martin Balin 2016-07-07 07:17:45 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 MackSix 2016-07-21 21:44:04 UTC
Still valid in:

Product Version: NetBeans IDE Dev (Build 201607140002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)