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 237777 - Project -> Properties -> Libraries : ver 7.4 sorts compile-time libraries in alphabetical order after restart (that cause compilation errors). Why then "move up", "move down" buttons" still there?
Summary: Project -> Properties -> Libraries : ver 7.4 sorts compile-time libraries in ...
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal with 3 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 237770 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-29 20:35 UTC by sabix
Modified: 2014-01-07 02:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (113.42 KB, text/plain)
2013-10-29 20:35 UTC, sabix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sabix 2013-10-29 20:35:11 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Comment 1 sabix 2013-10-29 20:35:13 UTC
Created attachment 141660 [details]
IDE log
Comment 2 Milos Kleint 2013-10-31 13:42:18 UTC
I can confirm this is indeed happening (re-sorting the libraries after restart) but only with j2ee modules enabled. Still wasn't able to pinpoint the code responsible though.
Comment 3 Milos Kleint 2013-11-01 11:06:40 UTC
after some serious debugging, I've found the place that does the reordering:

org.netbeans.modules.javafx2.project.JFXProjectUtils.updateClassPathExtension()
appears to read the property content and split it into a set (TreeSet) which reorders the items, later the set and written.
-> updateClassPathExtensionProperties() -> getUpdatedCPProperty() -> getExistingProperty(ProjectProperties.JAVAC_CLASSPATH)

even if we fix the ordering, updateClassPathExtension() appears to be doing some fairly low level stuff, creating it's own Editableproperties and writing FileObject streams. Looks suspicious to me.
Comment 4 Milos Kleint 2013-11-01 14:25:28 UTC
*** Bug 237770 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Zezula 2013-11-01 14:28:51 UTC
Wow, sorting classpath. Really interesting idea ;-)
Has to be fixed in NB 8.0 as it's nearly P1.
Comment 6 Milos Kleint 2014-01-03 19:12:15 UTC
please don't move the target milestone field, it designates the version where the issue is fixed or is planned to be fixed
Comment 7 Tomas Zezula 2014-01-06 14:12:36 UTC
Fixed jet-main b516c9741b8e
Comment 8 Tomas Zezula 2014-01-06 14:22:42 UTC
jet-main ddc51e3322a7
Comment 9 Quality Engineering 2014-01-07 02:50:23 UTC
Integrated into 'main-silver', will be available in build *201401070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ddc51e3322a7
User: Tomas Zezula <tzezula@netbeans.org>
Log: #237777:Project -> Properties -> Libraries : ver 7.4 sorts compile-time libraries in alphabetical order after restart