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 239166

Summary: Accidental use of hint destroys code
Product: java Reporter: Chiana
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 3.1/NT   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 239403    
Bug Blocks:    
Attachments: Before using hint
After using the hint

Description Chiana 2013-12-05 17:26:14 UTC
[ BUILD # : 20131205 ]
[ JDK VERSION : 1.7.0_40 ]

If you accidentally use the "conditional statement redundant" hint the code is
destroyed, se screen-shots for details.
Fortunatly the undo still works...
Comment 1 Chiana 2013-12-05 17:27:02 UTC
Created attachment 142877 [details]
Before using hint
Comment 2 Chiana 2013-12-05 17:27:31 UTC
Created attachment 142878 [details]
After using the hint
Comment 3 Svata Dedic 2013-12-12 11:23:06 UTC
The fix does not work well with parenthesis. Fixed in jet-main#f6577b162662


A dependent bug was filed, issue #239403.