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

Need spec for Font.getFamily()

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5



      Name: mgC56079 Date: 05/08/98



      ===== Here is the javadoc ========
          /**
           * Returns the family name of the font (for example, Helvetica).
           * Use getName to get the logical name of the font.
           * Use getFontName to get the font face name of the font.
           * @see #getName
           * @see #getFontName
           * @since JDK1.2
           */

          public String getFamily() {
              return NativeFontWrapper.getFamilyName(this);
          }

      This method used to initialize family to
      family = System.getProperty("awt.font." + name.toLowerCase(), name);
      in JDK releases prior to 1.2beta4.
      The implementation was changed in 1.2beta4D and this causes JCK1.2ea2 regeression:
        api/java_awt/Font/manual.html#GetFamily

      Need precize specification to update the test.

      "@since" tag is also incorrect as this method is not new for JDK1.2.

      ================= Here is the jtr file for JCK test =================
      #Test Results
      #Fri May 01 20:10:56 PDT 1998
      ObjectID=Font Class
      testsuite=file:/net/tapas/export1/testexec/JCK-12e/tests/testsuite.html
      source=GetFamilyTests.java
      executeClass=javasoft.sqe.tests.api.java.awt.Font.GetFamilyTests
      title=Font getFamily tests
      status=Failed. Incorrect family nameH
      work=file:/net/tapas/export1/testexec/results/d2peas12e/api/java_awt/Font/
      execStatus=Failed. Incorrect family nameH
      description=file:/net/tapas/export1/testexec/JCK-12e/tests/api/java_awt/Font/manual.html#GetFamily
      id=GetFamily
      name=GetFamily
      sections=compile.java execute
      harnessVersion=JT_1.1
      file=file:/net/tapas/export1/testexec/JCK-12e/tests/api/java_awt/Font/manual.html
      end=Fri May 01 20:10:56 PDT 1998
      start=Fri May 01 20:10:46 PDT 1998
      keywords=compile execute positive coreAPI awt
      environment=jck-compiler-otherJVM-solx86
      executeArgs=-TestCaseID ALL -WorkDir $testWorkDir -Test $test

      test: file:/net/tapas/export1/testexec/JCK-12e/tests/api/java_awt/Font/manual.html#GetFamily
      Based on these keywords: coreapi
      this script has been selected: javasoft.sqe.harness.lib.StdTestScript -compile -execute
      call: javasoft.sqe.harness.lib.ProcessCommand CLASSPATH=/net/tapas/export1/testexec/results/d2peas12e/classes:/net/tapas/export1/testexec/JCK-12e/tests/../classes DISPLAY=peas:0.0 /net/tapas/export1/testexec/jdk12d/solx86/bin/javac -nowarn -d /net/tapas/export1/testexec/results/d2peas12e/classes /net/tapas/export1/testexec/JCK-12e/tests/api/java_awt/Font/GetFamilyTests.java
      command result: Passed. exit code 0
      ----------ref:compile.java(0/0)----------
      ----------log:compile.java(0/0)----------
      call: javasoft.sqe.harness.lib.ExecJCKTestOtherJVMCmd CLASSPATH=/net/tapas/export1/testexec/results/d2peas12e/classes:/net/tapas/export1/testexec/JCK-12e/tests/../classes DISPLAY=peas:0.0 /net/tapas/export1/testexec/jdk12d/solx86/bin/java -verify javasoft.sqe.tests.api.java.awt.Font.GetFamilyTests -TestCaseID ALL -WorkDir /net/tapas/export1/testexec/results/d2peas12e/api/java_awt/Font/ -Test /net/tapas/export1/testexec/JCK-12e/tests/api/java_awt/Font/manual.html
      command result: Failed. Incorrect family nameH
      ----------ref:execute(1/83)----------
      Created font: java.awt.Font[family=H,name=NameOfTheFont,style=bolditalic,size=120]
      ----------log:execute(1/38)----------
      STATUS:Failed. Incorrect family nameH
      test result: Failed. Incorrect family nameH
      ==================================================


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

            asommere Alan Sommerer (Inactive)
            mgorshen Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: