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 191393

Summary: ProjectUtils.getPreferences() violates own contract about shared properties
Product: projects Reporter: Alexander Simon <alexvsimon>
Component: Ant ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal CC: jlahoda, vv159170
Priority: P3 Keywords: API
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 191160, 134580    

Description Alexander Simon 2010-10-27 09:05:59 UTC
Method org.netbeans.api.project.ProjectUtils.getPreferences() violates contract when shared is false.
Method stored properties in the project.xml.
Error in the class:
AuxiliaryConfigBasedPreferencesProvider.flushImpl(), line 287:
            ac.putConfigurationFragment(configRoot, true);
Should be 
            ac.putConfigurationFragment(configRoot, shared);
Comment 1 Jesse Glick 2010-10-27 12:34:18 UTC
Probably right.
Comment 2 Jesse Glick 2010-10-27 12:35:35 UTC
core-main #be717eb417de
Comment 3 Quality Engineering 2010-10-28 02:54:12 UTC
Integrated into 'main-golden', will be available in build *201010280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/be717eb417de
User: Jesse Glick <jglick@netbeans.org>
Log: #191393: ProjectUtils.getPreferences() violates own contract about shared properties