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

Font(name,style,size) locks up user session if size is very large.

XMLWordPrintable

    • 2d
    • beta
    • x86, sparc
    • solaris_2.6


      Using the Font(String name,int style, int size) to create a new Font
      when size is large (say 2222) causes the user's session to lock up.

      A JCK test can be used to illustrate the problem. Run on either a
      sparc or x86 Solaris 2.6 system.

      #!/bin/ksh
      JCK=/net/ultralynx.eng/export/kumarsv/jck/JCK-runtime-api-12a
      JAVA_HOME=/net/mulder.eng/export/mulder3/jdk12x/`/bin/uname -p`/jdk1.2FCS
      PATH=${JAVA_HOME}/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
      LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib
      CLASSPATH=.:${JCK}/classes:${JCK}/javatest.jar
      THREADS_FLAG=native
      export PATH
      export LD_LIBRARY_PATH
      export CLASSPATH
      export THREADS_FLAG
      if [ ! -f GraphicsTests.java ]; then
        cp ${JCK}/tests/api/java_awt/interactive/GraphicsTests.java .
      fi
      if [ ! -f manual.html ]; then
        cp ${JCK}/tests/api/java_awt/interactive/manual.html .
      fi
      java -version
      javac -d . -nowarn GraphicsTests.java
      java -Xfuture javasoft.sqe.tests.api.java.awt.interactive.GraphicsTests -TestCaseID ALL -TestDirURL file:${JCK}/tests/api/java_awt/interactive/manual.html


      Once the test window comes up:
      (1) Set the Choice (initially labeled setClip) to setFont.
      (2) In the TextArea change the "18" to "2222".
      (3) Click on the Apply button.
      (4) Wait.


      allan.jacobs@Eng 1998-12-15

            dougfelt Doug Felt
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: