JDK-6848884 : closed/javax/swing/SwingUtilities/6464003/bug6464003.java fails with RuntimeException
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2009-06-08
  • Updated: 2011-01-24
  • Resolved: 2009-09-23
Related Reports
Relates :  
Relates :  
Description
Bug Info
========
closed/javax/swing/SwingUtilities/6464003/bug6464003.java fails with the following exception.

java.lang.RuntimeException: The right side bearing is not taken in the account in SwingUtilities.layoutCompoundLabel().
	at bug6464003.main(bug6464003.java:63)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:717)

It fails on all platforms like solaris,windows and linux.

JDK Info
=========
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-administrator_2009_06_01_0
1_18-b00)
Java HotSpot(TM) Client VM (build 16.0-b03, mixed mode, sharing)

Steps to Reproduce
===================
Set the following envrionment and run the test.

1. Set JTREG PATH
2. Set JDK HOME
3. Set WORK DIR and REPORT DIR
4. Set the SUITE(ex: SUITE=/net/sqindia.india/export/disk01/vinay/src/jdk/test/closed/javax/swing/SwingUtilities/6464003/bug6464003.java)
5. Run the following command once set the above environment.

ksh ${JTREG_PATH}/bin/jtreg -v -jdk:${JDK_HOME} -r:${REPORT_DIR} -w:${WORK_DIR} ${SUITE}

Comments
EVALUATION This test was removed from the JDK 7 workspace together with the fix for 6797139
23-09-2009