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 215475

Summary: Java GUI Editor sporadically ignoring non-local modifiers
Product: guibuilder Reporter: fommil <fommil>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description fommil 2012-07-12 15:50:48 UTC
This is with 7.2RC1.

I recently switched my GUI Editor preferences to have local variables. When I need to make a variable visible as a field, I deselect the 'Use Local Variable' just for that variable under the "Code" tab.

However, even though I have 'private' listed as my 'Variable Modifiers', this only seems to be respected on occasion. Specifically, the first time I change a variable from local into field, it appears with 'default' (i.e. package) visibility.

The 'Variable Modifiers' value should always be respected.