JDK-4919233 : test/sun/io/Converter/Test4200310.sh fails -- duplcate class files in jar?
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_9,solaris_10
  • CPU: generic,x86
  • Submitted: 2003-09-09
  • Updated: 2013-08-05
  • Resolved: 2003-11-23
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.
Other
5.0 b30Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
http://nio/autobuild/get.cgi/builds/tiger/solaris-sparc-2.8/build/251/jt/work/sun/io/Converter/Test4200310.jtr

#Test Results (version 2)
#Mon Sep 08 06:13:04 PDT 2003
#checksum:320a61df3332a69f
#-----testdescription-----
$file=/u/ws/auto/tiger/test/sun/io/Converter/Test4200310.sh
$root=/u/ws/auto/tiger/test
author=Norbert Lindenberg
keywords=bug4200310 shell
run=USER_SPECIFIED shell Test4200310.sh\n
source=Test4200310.sh
title=make sure class files are not duplicated between rt.jar, charsets.jar, and localedata.jar

#-----environment-----

#-----testresult-----
description=file:///u/ws/auto/tiger/test/sun/io/Converter/Test4200310.sh
end=Mon Sep 08 06:13:04 PDT 2003
environment=regtest
execStatus=Failed. Execution failed: exit code 1
javatestOS=SunOS 5.8 (sparc)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages shell
start=Mon Sep 08 06:13:01 PDT 2003
status=Failed. Execution failed: exit code 1
test=sun/io/Converter/Test4200310.sh
work=/u/ws/auto/tiger/build/251/jt/work/sun/io/Converter

#section:script_messages
----------messages:(4/229)----------
JDK under test: (/u/ws/auto/tiger/build/251/j2sdk-image)
java version "1.5.0-auto-tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-auto-tiger-251)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b18, mixed mode)

#section:shell
----------messages:(3/117)----------
command: shell Test4200310.sh 
reason: User specified action: run shell Test4200310.sh 
elapsed time (seconds): 3.27
----------System.out:(1/191)----------
FAILED: sun/nio/cs/ext/DoubleByteEncoder.class sun/nio/cs/ext/JIS_X_0208_Encoder.class sun/nio/cs/ext/JIS_X_0212_Encoder.class are duplicated between rt.jar, charsets.jar, and localedata.jar
----------System.err:(0/0)----------
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1

-- iag@sfbay 2003-09-08

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
14-06-2004

SUGGESTED FIX Since the mentioned classes are compiled into rt.jar earlier in the build process (due to forward dependencies) the sun/io/FILES_java.gmk build dependency/target list for the nio charset classes should have the entries corresponding to those early built classes removed. i.e remove sun/nio/cs/ext/JIS_X_0208_Encoder.java sun/nio/cs/ext/JIS_X_0212_Encoder.java and sun/nio/cs/ext/DoubleByteEncoder.java from sun/io/FILES_java.gmk Others listed in the comment field on this bug report will need to be removed as the final batch of nio charsets which share lookup tables are integrated. ###@###.### 2003-09-18 With some more thought on this issue it seems that the build targets for those sun.nio.cs.ext classes which need to be built early ought to be listed within the sun.awt Makefile as explicit build targets since the sun.awt X11 font charset converter classes have an indirect dependency upon them. So the proposed fix is to remove the entries from make/sun/io/FILES_java.gmk and to add them to make/sun/awt/FILES_java_unix.gmk. They may also need to be listed in make/sun/awt/Makefile in the list of "UNDESIRED_FILES" so that they are cleaned out of the staging area for rt.jar in such a way that they get incorporated into charsets.jar ###@###.### 2003-09-18
18-09-2003

EVALUATION Some forward dependencies by sun.awt.motif.CharToByteX11* classes in the current scheme of converter table sharing required that some of the sun.nio.cs.ext Charset classes are compiled premature to the remainder of sun.nio.cs.ext classes. Those sun.nio.cs.ext classes are then carried into rt.jar as part of the building of jre images. These dependencies are unavoidable for tiger so the targets which get built early due to early dependencies ought to be removed from the Makefile which builds the remainder of sun.nio.cs.ext charsets. ###@###.### 2003-09-18
18-09-2003