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 7101

Summary: Errors in compilation with MultiFileSystem
Product: platform Reporter: Petr Jiricka <pjiricka>
Component: -- Other --Assignee: anovak <anovak>
Status: CLOSED FIXED    
Severity: major CC: anovak
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Jiricka 2000-07-19 10:51:02 UTC
[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.
Comment 1 Jaroslav Tulach 2000-07-19 11:13:59 UTC
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?
Comment 2 Petr Jiricka 2000-07-19 18:20:59 UTC
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.
Comment 3 Marian Mirilovic 2002-10-19 17:33:26 UTC
verified, closed