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.
[1059] MultiFileSystem and its subclasses don't allow compilation of Java classes, because NbClassPath.toFile(fo) returns null for this FS. See for example org.netbeans.modules.web.context.DelegatingFileSystem. To reproduce: 1) In IE, run "Convert FileSystem to web module" action (Tools menu) on a root of any FS. 2) A new FS with WEB-INF/classes in its display name will be added. 3) Create any java file in the new FS 4) Compile : you will see "Errors compiling ClassName" in status line, nothing in output window.
The problem seems to be in the filesystem, because it does not provide valid implementation of prepareEnvironment method. The filesystem has to fix it, but the compiler should give better warning in such situation. Could an ErrorEvent be fired from the compilation?
This issue has to be resolved for individual subclasses of MultiFileSystem, can not be solved generically in MultiFileSystem. Fixed in org.netbeans.modules.web.context.DelegatingFileSystem.
verified, closed