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.
ModuleLayeredFileSystem.resultChanged calls appendLayer with addClasspathLayers=false, blowing away the XML layers and leaving behind just user directory modifications. Seems to be cause of assorted random test failures visible in ProjectGenerator. (Why the lookup event is being fired at random is another question.)
core-main #30630a09b8bd
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/30630a09b8bd User: Jesse Glick <jglick@netbeans.org> Log: #200848: XML layers from classpath discarded after LookupEvent on FileSystem
The fix causes at least one, but possibly many regressions: bug 201544. Maybe also bug 202316.
I plan to backout this commint as it causes significant regression - e.g. bug 201544.
OK, back out the current fix and downgrade to P3 if you think you understand what is wrong with it. Should be able to use the existing unit test to guide a revised fix. (BTW testNbRepositoryInitializedFromClasspath seems to be order-sensitive so it should probably be split into its own suite.)
ergonomics#7723233dd167
Should this maybe use ModuleLayeredFileSystem.class.getClassLoader() instead? ClassLoader.systemClassLoader might be wrong when run from NbModuleSuite etc.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/7723233dd167 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #200848: Read classpath layers only from classpath classloader