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 - Errors in compilation with MultiFileSystem
Summary: Errors in compilation with MultiFileSystem
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: anovak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-19 10:51 UTC by Petr Jiricka
Modified: 2008-12-23 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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