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 64046 - Bootstrap changes: Treat $cluster/core/*.jar as real modules
Summary: Bootstrap changes: Treat $cluster/core/*.jar as real modules
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on: 64911
Blocks:
  Show dependency tree
 
Reported: 2005-09-11 08:55 UTC by Jaroslav Tulach
Modified: 2010-04-29 19:37 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
The old patch from CVS, as best as I can reconstruct it (112.93 KB, patch)
2010-04-28 19:34 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-09-11 08:55:19 UTC
Currently all the JARs found in core/*.jar are treated as fixed modules loaded  
by the "dynamic class loader" in org.netbeans.Main. This classloader is always  
put as a parent for any regular module.  
  
As a result the search for a classes scans core.jar and openide-fs.jar and  
other (usually *-cli.jar) jars in the core/ directory of any cluster. Also  
enforsing "public packages" does not seem to work well.  
  
I propose to delete the BootClassLoader and use regular module classloaders  
for access to all core/* jar files. Could result in some speed up, but also 
would move the generic part of handling modules into boot.jar, so using our 
modules system standalone would be simpler.
Comment 1 Jaroslav Tulach 2005-09-11 09:09:32 UTC
core branched at BLD200509072000 to branch named boot_64046 
 
If non-module JAR files in the core/* are removed and -Dnetbeans.acceptlicense 
and -Dnetbeans.importclass are deleted in launcher then the system starts 
Comment 2 Jaroslav Tulach 2005-11-08 21:28:35 UTC
Made up to date with branch BLD200511071900 
 
Comment 3 Jaroslav Tulach 2006-08-11 07:11:47 UTC
I guess I give up, current 
http://dvbcentral.sourceforge.net/netbeans-runtime.html works reasonably 
enough to not spend time on this. Especially if there are other things to do.
Comment 4 Jaroslav Tulach 2010-04-28 10:55:20 UTC
Jesse, do you have old CVS copy somewhere? Could you dig branch boot_64046 
 for me? If, so please attach the patch here. Thanks.
Comment 5 Jesse Glick 2010-04-28 19:34:25 UTC
Tricky because we started deleting the BLD* tags starting just a bit before these branch points, but I can try to reconstruct BLD200511071900 so as to create a proper diff. Also translating to current repo layout.
Comment 6 Jesse Glick 2010-04-28 19:34:54 UTC
Created attachment 98228 [details]
The old patch from CVS, as best as I can reconstruct it
Comment 7 Jaroslav Tulach 2010-04-29 07:57:51 UTC
Thanks for the patch. I'll use it as inspiration (it is not using hg rename, so appying it directly is not possible) if I ever decide to change the bootstrap.
Comment 8 Jesse Glick 2010-04-29 19:37:20 UTC
(In reply to comment #7)
> it is not using hg rename, so applying it directly is not possible

Read docs for 'hg addrem -s'.