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 220064 - Hint removes "static" from source
Summary: Hint removes "static" from source
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-14 11:16 UTC by Chiana
Modified: 2012-12-01 15:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before using hint (48.91 KB, image/jpeg)
2012-10-14 11:17 UTC, Chiana
Details
After work (69.86 KB, image/jpeg)
2012-10-14 11:18 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2012-10-14 11:16:14 UTC
[ JDK VERSION : 1.7.7 ]

Examine the screenshot's, the original code is in Static1 and as you can see
the is the keyword "static" on line 16 and a hint about uncaught exceptions on
line 20.
When you use this hint it will remove the "static" from line 16 (as you can see
there is no "static" on line 18.
Comment 1 Chiana 2012-10-14 11:17:44 UTC
Created attachment 125933 [details]
Before using hint
Comment 2 Chiana 2012-10-14 11:18:56 UTC
Created attachment 125934 [details]
After work
Comment 3 Quality Engineering 2012-10-26 01:28:47 UTC
Integrated into 'main-golden', will be available in build *201210260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e342e14c1aa3
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #220064: must copy the block's static flag on surround with try-catch fix.
Comment 5 Chiana 2012-12-01 15:02:51 UTC
Verified 121130