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.
Summary: | Compatible implementation of TopManager.currentClassLoader() | ||
---|---|---|---|
Product: | java | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | jglick, jjancura, tpavek |
Priority: | P1 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
URL: | http://java.netbeans.org/doc/projects/issues-filesystems.html | ||
Issue Type: | TASK | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 27112 |
Description
Jaroslav Tulach
2002-09-17 14:43:20 UTC
Is this not dupe of issue #27112? Or perhaps a blocker for it? Would adding that union as a (hidden) filesystem to the Repository help ? Union FS would definitively solve this issue. The trouble is that I would like to make the UnionFS voluntary extension - it would be there just for some users. But I would like the currentClassLoader to work "right" all the time. I suggest to change TM.currentClassLoader in openide to use lookup to find all ClassLoaders, and test that one is marked as the "right" (java.util.Map or other trick). If no right is found it would delegate to the first one => currentClassLoader == systemClassLoader. You know - (singleton)currentClassLoader will work just as bad (or as well) as the UnionFS: it still has to merge all execution paths from opened projects since it does not know what its client really wants. You are right, but somehow I feel that it can do less harm. In FileSystem people can do different kind of things, for example modifications. When using currentClassLoader, the only reasonable thing is to search for a class, potentially resource. I believe that this is more easy to mess up than the union FS. Sorry for last sentence, I have meant: The currentCL is less dangerous than union fs. See the unionfs/filesystem compat issues document linked in the URL field. Probably impractical. |