Bug 159095

Summary: jar does not recognize the "i" command line option
Product: [Fedora] Fedora Reporter: Ville Skyttä <scop>
Component: java-1.4.2-gcj-compatAssignee: Thomas Fitzsimmons <fitzsim>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jar.html
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-02 02:11:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 158504    

Description Ville Skyttä 2005-05-29 10:24:51 UTC
jar from java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_24rh does not recognize the
"i" option, making it incompatible with for example Sun's jar tool.

  $ jar i foo.jar
  jar: invalid option -- i
  Try `jar --help' for more information.

More info about the "i" option and jar indexes:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jar.html
http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#JAR%20Index

I think might be a good idea to provide the "i" option in the jar tool included
in gcj-compat-devel even if it would be a no-op, with an appropriate warning
message.  That would provide command line compatibility; indexing of jars is an
optional optimization feature not really required by anything, and at best
rarely used.

Comment 1 Thomas Fitzsimmons 2005-05-29 17:17:27 UTC
OK, I'll submit a patch for this to fastjar upstream.


Comment 2 Thomas Fitzsimmons 2006-02-07 16:22:58 UTC
I submitted a patch for this upstream that creates a no-op -i option for
compatibility.  I'll close this bug when the fix lands in Rawhide.


Comment 3 Thomas Fitzsimmons 2006-02-08 05:53:02 UTC
Patch accepted and committed to gcc HEAD and 4.1 branches.


Comment 4 Thomas Fitzsimmons 2006-03-02 02:11:55 UTC
This landed in Rawhide with libgcj-4.1.0-1.  Closing.