JDK-4092015 : jar files should be allowed to contain other jar files
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 1.1.4,6
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux,solaris_2.6
  • CPU: x86
  • Submitted: 1997-11-11
  • Updated: 1999-04-09
  • Resolved: 1999-04-09
Related Reports
Duplicate :  
Description

Name: rm29839			Date: 11/11/97


It would be nice if jar files could contain other
jar files, obviously the class loader would do
a recursive search for the requested classes 

My reason for requesting this feature is simple.
Suppose you have a variety of packages and package
heirarchies, you may want to jar the whole thing
up for a product ship, or you may just want to 
jar up individual heirarchies to test or use 
certain packages only.

If you have 3 main packages and just allow .class
files in a jar file, then anytime any of the
maintainers of any of the 3 packages makes a 
change, they'll have to jar back up the whole
tree.  One jar file per package, and then one
master jar file for all three would make life a
lot nicer.
(Review ID: 19192)
======================================================================

Comments
WORK AROUND Name: rm29839 Date: 11/11/97 ======================================================================
11-06-2004

EVALUATION I think we should keep the jar archive structure simply at one level. Having a hierachy of jar structures leads to complications to class loaders and seems that the reason we need this feature is not well justified. Just put all the packages into a flat jar file would work. ###@###.### 1999-04-08
08-04-1999