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 - Accidental use of hint destroys code
Summary: Accidental use of hint destroys code
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 3.1/NT
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 239403
Blocks:
  Show dependency tree
 
Reported: 2013-12-05 17:26 UTC by Chiana
Modified: 2013-12-12 11:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before using hint (39.61 KB, image/jpeg)
2013-12-05 17:27 UTC, Chiana
Details
After using the hint (41.82 KB, image/jpeg)
2013-12-05 17:27 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
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.