JDK-8165944 : jar utility doesn't process more than one -C argument
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2016-09-13
  • Updated: 2016-10-07
  • Resolved: 2016-10-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b139Fixed
Related Reports
Relates :  
Description
jar -cf test.jar -C test1 . -C test2 .
Ignores  second -C argument

Comments
#ls -ld test1/* test2/* test1/testfile1 test2/testfile2 #/opt/jdk8/bin/jar -cf test.jar -C test1 . -C test2 . #unzip -v test.jar Archive: test.jar Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 0 Defl:N 2 0% 09-13-2016 14:26 00000000 META-INF/ 69 Defl:N 68 1% 09-13-2016 14:26 0de9ca6a META-INF/MANIFEST.MF 95 Defl:N 92 3% 09-13-2016 14:00 49b1374f testfile1 189 Defl:N 101 47% 09-13-2016 14:00 3f0661e9 testfile2 -------- ------- --- ------- 353 263 26% 4 files chew:JDK-8165500#/opt/jdk9/bin/jar -cf test.jar -C test1 . -C test2 . chew:JDK-8165500#unzip -v test.jar Archive: test.jar Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 0 Defl:N 2 0% 09-13-2016 14:27 00000000 META-INF/ 70 Defl:N 71 -1% 09-13-2016 14:27 e8dfa238 META-INF/MANIFEST.MF 95 Defl:N 92 3% 09-13-2016 14:00 49b1374f testfile1 -------- ------- --- ------- 165 165 0% 3 files
13-09-2016