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

java.awt.Font.getPeer throws "java.lang.InternalError: Not implemented" on Linux

    Details

    • Subcomponent:
      2d
    • Introduced In Build:
      b33
    • Introduced In Version:
      7
    • Resolved In Build:
      b54
    • CPU:
      x86
    • OS:
      linux, linux_suse_sles_10, linux_ubuntu, solaris_nevada
    • Verification:
      Verified

      Description

      Platform: Linux 2.6.25.11-60.fc8 (i386)
      JDK: 7b34
      JCK: 7 b05
      Test: api/java_awt/Font/descriptions.html#GetPeer
      (Please see GetPeerTests.java attached)

      The output is the following:

      java.lang.InternalError: Not implemented
      at sun.font.FcFontConfiguration.getFontDescriptors(FcFontConfiguration.java:175)
      at sun.awt.PlatformFont.<init>(PlatformFont.java:74)
      at sun.awt.X11.XFontPeer.<init>(XFontPeer.java:53)
      at sun.awt.X11.XToolkit.getFontPeer(XToolkit.java:874)
      at java.awt.Font.getPeer_NoClientCode(Font.java:427)
      at java.awt.Font.getPeer(Font.java:418)
      at javasoft.sqe.tests.api.java.awt.Font.GetPeerTests.Font2014(GetPeerTests.java:42)
      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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
      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.jck.lib.ExecJCKTestSameJVMCmd$Version2Test.execute(ExecJCKTestSameJVMCmd.java:441)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd$StandardTest.run(ExecJCKTestSameJVMCmd.java:389)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd.execute(ExecJCKTestSameJVMCmd.java:257)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:162)
      at com.sun.javatest.agent.Agent$Task.executeCommand(Agent.java:841)
      at com.sun.javatest.agent.Agent$Task.execute(Agent.java:772)
      at com.sun.javatest.agent.Agent$Task.handleRequest(Agent.java:633)
      at com.sun.javatest.agent.Agent.handleRequestsUntilClosed(Agent.java:400)
      at com.sun.javatest.agent.Agent.access$000(Agent.java:60)
      at com.sun.javatest.agent.Agent$1.run(Agent.java:272)
      at java.lang.Thread.run(Thread.java:674)
      Font2014: Failed. Test case throws exception: java.lang.InternalError: Not implemented


      It is caused by the following code:
      -------------------------------------------------------------------
            String name="NameOfTheFont"; //step Create font name
            int style=Font.PLAIN; //step Create font styles
            int size=11;
            Font f=new Font(name,style,size); //step Create Font object
            java.awt.peer.FontPeer fp=f.getPeer(); //step Create its peer
      -------------------------------------------------------------------

        Issue Links

          Activity

          Hide
          dcherepanov Dmitry Cherepanov added a comment -
          BT2:EVALUATION

          It looks like this is a duplicate of 6733203.
          Show
          dcherepanov Dmitry Cherepanov added a comment - BT2:EVALUATION It looks like this is a duplicate of 6733203.
          Hide
          prr Philip Race added a comment -
          BT2:EVALUATION

          Should just return an empty array instead of throwing an exception.
          However this top level API to return a useless peer will soon be the only use made
          of this method.
          Show
          prr Philip Race added a comment - BT2:EVALUATION Should just return an empty array instead of throwing an exception. However this top level API to return a useless peer will soon be the only use made of this method.

            People

            • Assignee:
              prr Philip Race
              Reporter:
              dbessono Dmitry Bessonov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: