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

Summary: Hint removes "static" from source
Product: editor Reporter: Chiana
Component: Hints & AnnotationsAssignee: Jan Lahoda <jlahoda>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Before using hint
After work

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