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.
[Originally reported as issue #34022, tracking XTest's failure to handle this failure message correctly. But the failure is also incorrect so tracking it separately.] Reports: Some instances cannot be created [ File Templates/API_Support/API_test_script.java thrown exception java.lang.ClassNotFoundException: Templates.API_Support.API_test_script, File Templates/API_Support/Editor_API/EditorSupport.java thrown exception java.lang.ClassNotFoundException: Templates.API_Support.Editor_API.EditorSupport, File Templates/API_Support/Modules_API/Installer.java thrown exception java.lang.ClassNotFoundException: Templates.API_Support.Modules_API.Installer, File Templates/API_Support/Services_API/XMLProcessor.java thrown exception java.lang.ClassNotFoundException: Templates.API_Support.Services_API.XMLProcessor] Of course these instances cannot be created - no one is supposed to try. (Actually I am not sure why the many other *.java files in apisupport's templates *didn't* fail.) In skipFile I see: if (s.startsWith ("Templates/GUIForms")) return true; etc., just skipping every .java file in Templates. Why not just skip all of Templates to begin with? Or if you want to check e.g. Templates/Services/**/*.settings, at least condense these checks to if (s.endsWith(".shadow")) return true; if (s.endsWith(".java")) return true; Note also that I think for 4.0 we should stop using InstanceCookie on "user" data objects like *.java, and deprecate IC.Of. See thread "Customize Bean action - do we need it?" on nbui, and also issue #32749 and issue #31960. If we restricted this cookie to actual settings, the layer validation test would be simplified.
Created attachment 10575 [details] Suggested patch
I suggest this patch, Jesse when you will do next build, can you verify and apply it please?
OK, will try it when I do the next build. Thanks.
committed Up-To-Date 1.3 core/test/unit/src/org/netbeans/core/projects/ValidateLayerConsistencyTest.java
closed