Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4910156

28 JCK1.5-runtime tests fail with java.lang.AssertionError

XMLWordPrintable

    • generic
    • generic



      Name: mmR10223 Date: 08/20/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b15
      JCK : JCK1.5-runtime
      Platform[s] : all
      switch/Mode : -enablesystemassertions
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
              api/java_awt/Font/GlyphVector/index.html#GetTesttestCase10 [testCase10]
              api/java_awt/Font/GlyphVector/index.html#GetTesttestCase11 [testCase11]
              api/java_awt/Font/GlyphVector/index.html#GetTesttestCase12 [testCase12]
      api/java_awt/Font/GlyphVector/index.html#GetTesttestCase13 [testCase13]
      api/java_awt/Font/GlyphVector/index.html#GetTesttestCase14 [testCase14]
      api/java_awt/Font/GlyphVector/index.html#GetTesttestCase15 [testCase15]
      api/java_awt/Font/GlyphVector/index.html#GetTesttestCase16 [testCase16]
      api/java_awt/Font/GlyphVector/index.html#GetTesttestCase1 [testCase1]
      api/java_awt/Font/descriptions.html#GetFont [Font2020]
      api/java_awt/List/AccessibleAWTList/AccessibleAWTListChild/index.html#AccessibleComponent [AccessibleAWTListChild0017]
      api/java_awt/Component/AccessibleAWTComponent/index.html#AccessibleComponent [AccessibleAWTComponent0021]
      api/java_awt/Component/descriptions.html#getFromToolkit [Component2151]
      api/java_awt/serialization/descriptions.html#Font [testRead]
      api/javax_swing/AbstractButton/AccessibleAbstractButton/index.html#AccessibleContext [AccessibleAbstractButton0005]
      api/javax_swing/AbstractButton/AccessibleAbstractButton/index.html#AccessibleText [AccessibleAbstractButton0015,AccessibleAbstractButton0016, AccessibleAbstractButton0017, AccessibleAbstractButton0018, AccessibleAbstractButton0019, AccessibleAbstractButton0020, AccessibleAbstractButton0021]
      api/javax_swing/JLabel/AccessibleJLabel/index.html#AccessibleText [AccessibleJLabel0006, AccessibleJLabel0007, AccessibleJLabel0008, AccessibleJLabel0009, AccessibleJLabel0010, AccessibleJLabel0011, AccessibleJLabel0012]
      api/javax_swing/JLabel/AccessibleJLabel/index.html#AccessibleContext [AccessibleJLabel0003]
      api/javax_swing/JApplet/AccessibleJApplet/index.html#AccessibleComponent [AccessibleJApplet0019]
      api/javax_swing/JComponent/AccessibleJComponent/index.html#AccessibleComponent [AccessibleJComponent0022]
      api/javax_swing/JDialog/AccessibleJDialog/index.html#AccessibleComponent [AccessibleJDialog0019]
      api/javax_swing/JFrame/AccessibleJFrame/index.html#AccessibleComponent [AccessibleJFrame0019]
      api/javax_swing/JTree/AccessibleJTree/AccessibleJTreeNode/index.html#AccessibleComponent [AccessibleJTreeNode0024]
      api/javax_swing/JWindow/AccessibleJWindow/index.html#AccessibleComponent [AccessibleJWindow0018]
      api/javax_swing/SwingUtilities/descriptions.html#other [SwingUtilities2033]
      api/javax_swing/border/TitledBorder/index.html#setgetXXX [TitledBorder2023]
      api/javax_swing/plaf/basic/BasicHTML/index.html#public [BasicHTML2004]
      api/javax_swing/table/JTableHeader/AccessibleJTableHeader/AccessibleJTableHeaderEntry/index.html#AccessibleComponent [AccessibleJTableHeaderEntry0024]
      api/javax_swing/text/html/MinimalHTMLWriter/index.html#text [MinimalHTMLWriter2019]



      These tests fail with option "-enablesystemassertions" using all JDK1.5.0 versions on all platforms and its pass using JDK1.4.2-b28
      But its pass without option "-enablesystemassertions" using all JDK1.5.0 version and JDK1.4.2-b28 on all platforms

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_awt/Font/GlyphVector/GetTest.java
      ....

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/jck15/sparc/sol10_sparc_gnome_client_d64_enablesystemassertions_linux-8/workDir/api/java_awt/Font/GlyphVector/index_GetTesttestCase10.jtr
      ....

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash

      JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux"
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/sparc"
      switches="-enablesystemassertions"
      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
       
      $JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.java.awt.Font.GlyphVector.GetTest -TestCaseID testCase10

      --- script end ---

      Test output:
      ============
      java.lang.AssertionError
      at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:745)
      at sun.font.Type1Font.getBuffer(Type1Font.java:95)
      at sun.font.Type1Font.verify(Type1Font.java:162)
      at sun.font.Type1Font.<init>(Type1Font.java:74)
      at sun.font.FontManager.registerFontFile(FontManager.java:704)
      at sun.font.FontManager.registerFonts(FontManager.java:739)
      at sun.java2d.SunGraphicsEnvironment.addDirFonts(SunGraphicsEnvironment.java:692)
      at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(SunGraphicsEnvironment.java:577)
      at sun.java2d.SunGraphicsEnvironment.registerFontsOnPath(SunGraphicsEnvironment.java:592)
      at sun.java2d.SunGraphicsEnvironment.access$600(SunGraphicsEnvironment.java:58)
      at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:384)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:373)
      at sun.font.FontManager.findFont2D(FontManager.java:968)
      at sun.font.FontManager.findFont2D(FontManager.java:942)
      at java.awt.Font.getFont2D(Font.java:328)
      at sun.font.FontManager.getFont2D(Native Method)
      at sun.font.StandardGlyphVector.initFontData(StandardGlyphVector.java:997)
      at sun.font.StandardGlyphVector.init(StandardGlyphVector.java:986)
      at sun.font.StandardGlyphVector.<init>(StandardGlyphVector.java:139)
      at java.awt.Font.createGlyphVector(Font.java:1966)
      at javasoft.sqe.tests.api.java.awt.Font.GlyphVector.GetTest.testCase10(GetTest.java:273)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
      at javasoft.sqe.tests.api.java.awt.Font.GlyphVector.GetTest.main(GetTest.java:39)

      Specific machine info:
      ======================
      Hostname: linux-8
      OS: Solaris 10 (sparc) (GNOME)
      Hostname: linux-24
      OS: Linux Redhat
      Hostname: linux-16
      OS: Windows 2000


      ======================================================================

            Unassigned Unassigned
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: