Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5070518
Votes 0
Synopsis /api/javax_swing/SwingUtilities/descriptions.html fails for JCK14a, 1.4.2_06b1
Category java:classes_2d
Reported Against 1.4a
Release Fixed 1.4.2_06
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4892906 , 5096053
Submit Date 01-JUL-2004
Description
 OS: Solaris 10 Sparc (build 62)
============================== 

 JDK: 1.4.2_06b1
================

///net/latte/export/home4/jck/JCK-runtime-14a/tests/api/javax_swing/SwingUtilities/descriptions.html#other testcase fails with an assertion failure :

Assertion failed: p != NULL, file ../../../src/share/native/sun/awt/font/t2k/t1.c, line 1974

Seen also with 1.4.2_05 FCS.

#section:testExecute
----------messages:(1/455)----------
command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd CLASSPATH=/net/latte/export/home4/jck/JCK-runtime-14a/classes LD_LIBRARY_PAT
H=/net/latte.ireland/export/home4/jck/JCK-runtime-14a/lib/sparc DISPLAY=club:0.0 HOME=/home/sc87771 //export/home/j2sdk1.4.2
_06/bin/java -Djava.awt.headless=false -Xfuture -Djava.security.policy=/net/latte/export/home4/jck/JCK-runtime-14a/lib/jck.p
olicy javasoft.sqe.tests.api.javax.swing.SwingUtilities.otherTests -TestCaseID ALL
----------ref:(0/0)----------
----------log:(1/93)----------
Assertion failed: p != NULL, file ../../../src/share/native/sun/awt/font/t2k/t1.c, line 1974
result: Failed. unexpected exit code: exit code 6


test result: Failed. unexpected exit code: exit code 6

  xxxxx@xxxxx   2004-07-01

This test passed for 1.4.2_05b2 on solaris 10 build 52/53
Looks like build 62 (or earlier) has broken this testcase.

testcase also fails now with 1.4.2_05b2 on build62


testcase passes for tiger-beta3.
  xxxxx@xxxxx   2004-07-01
Work Around
setenv JAVA_FONTS /usr/openwin/lib/X11/fonts/TrueType

  xxxxx@xxxxx   2004-07-02
Evaluation
setenv JAVA2D_DEBUGFONTS 1

  .....
  opened font file /usr/sfw/share/a2ps/fonts/pcfont.pfa fd=12
  Assertion failed: p != NULL, file   
  ../../../src/share/native/sun/awt/font/t2k/t1.c, line 1976
  Abort

We see that the offending font is: 
  /usr/sfw/share/a2ps/fonts/pcfont.pfa 

pcfont.pfa - Type 3 font providing support for line drawing PC encoding.
This is a new font in Sol 10 , at least over Sol 9.

  xxxxx@xxxxx   2004-07-02
=========================================

Sun's Java 2 Runtime Environment supports TrueType and PostScript Type 1 fonts.

pcfont.pfa is Type 3 but is being picked up by java because it is installed on
the system and has extension pfa. From /var/sadm/install/contents:

  /usr/sfw/share/a2ps/fonts/pcfont.pfa f none 0444 root bin 19263 12256 1087545085 SUNWa2psu

club : pkginfo -l SUNWa2psu
   PKGINST:  SUNWa2psu
      NAME:  a2ps - GNU Any to PostScript filter (user)
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  11.10.0,REV=2004.06.18.01.24
   BASEDIR:  /
    VENDOR:  Sun Microsystems, Inc.
      DESC:  a2ps - GNU Any to PostScript filter (user) 4.13
    PSTAMP:  sfw1020040618012738
  INSTDATE:  Jun 29 2004 14:01
   HOTLINE:  Please contact your local service provider
    STATUS:  completely installed
     FILES:      335 installed pathnames
                  16 shared pathnames
                  56 directories
                  10 executables
               12435 blocks used (approx)

Java makes the assumption that extension pfa is Type 1. In this case this is not 
true. I am uncertain if extension pfa is reserved for Type 1 fonts. If this is
the case then the font needs to be renamed. 

Reassigning to classes_2D so that this bug shows up on the correct product list.

  xxxxx@xxxxx   2004-07-16
========================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang