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

REGRESSION: 5.0_10b01 com.sun.javatest.TestFinder throws VerifyError on sun4v platform with S10u2

XMLWordPrintable

    • b01
    • sparc
    • solaris

      NOTE: This issue is sun4v platform specific.

      5.0_10b01 java.lang.Class.getMethods() is throwing an exception on S10u2

      falls 5.10 # uname -a
      SunOS falls 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200

      falls 5.10 # cat /etc/release
                             Solaris 10 6/06 s10s_u2wos_09a SPARC
                 Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
                              Use is subject to license terms.
                                   Assembled 09 June 2006
      falls 5.10 #

      i.e This is the latest customer Solaris release.

      falls 5.10 # head -4 /J2SE_Solaris_10_Recommended/CLUSTER_README
      # CLUSTER_README

      NAME: J2SE Solaris 10 Recommended Patch Cluster
      DATE: Sep/26/06
      falls 5.10 #

      i.e This is the latest customer recommended J2SE patch cluster
      and it was installed on this system.

      falls 5.10 # ../jdk1.5.0_09_REALLY_1.5.0_10b01/bin/java -version
      java version "1.5.0_09-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-ea-b01)
      Java HotSpot(TM) Server VM (build 1.5.0_09-ea-b01, mixed mode)
      falls 5.10 #

      i.e this was originally the intended 1.5.0_09 build 1 until realignment of releases names to accomodate special 5.0_09, now internally regarded as 5.0_10b01


      Test Code (thanks ###@###.###) :

      falls 5.10 # cat Test1.java
      import java.lang.reflect.*;
      import java.io.*;
      import java.net.*;
      import java.util.*;

      class Test1 {

         public static void main(String[] args) {

            try {
               File ts = new File(args[0]);
               URL [] urls = new URL[1];
               urls[0] = (new File(ts, "lib/javatest.jar")).toURL();
               Class tsClass = new URLClassLoader(urls).loadClass("com.sun.javatest.TestSuite");
               Method [] m = tsClass.getMethods();

            } catch ( Exception e ) {
               System.out.println("Got exception: " + e );
            }
            System.out.println("OK");
         }
      }
      falls 5.10 #

      falls 5.10 # ../jdk1.5.0_09_REALLY_1.5.0_10b01/bin/javac Test1.java
      falls 5.10 #

      Usage: java Test1 <path to JCK testsuite>

      falls 5.10 # ../jdk1.5.0_09_REALLY_1.5.0_10b01/bin/java Test1 /net/jqa.ireland/export/home4/jck/JCK-runtime-15a
      Exception in thread "main" java.lang.VerifyError: (class: com/sun/javatest/TestSuite, method: createTestFinder signature: ()Lcom/sun/javatest/TestFinder;) Wrong return type in function
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
              at java.lang.Class.privateGetPublicMethods(Class.java:2519)
              at java.lang.Class.getMethods(Class.java:1406)
              at Test1.main(Test1.java:15)
      falls 5.10 #

      This test code passess on 5.0_08b03 (on sun4v) as shown next:

      falls 5.10 #
      falls 5.10 # ../5u8b3/jdk1.5.0_08/bin/java -version
      java version "1.5.0_08"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
      Java HotSpot(TM) Server VM (build 1.5.0_08-b03, mixed mode)
      falls 5.10 #
      falls 5.10 # ../5u8b3/jdk1.5.0_08/bin/java Test1 /net/jqa.ireland/export/home4/jck/JCK-runtime-15a
      OK
      falls 5.10 #


      The failing test passes on sun4u platform as shown next:

      tiffin 5.10 # uname -a
      SunOS tiffin 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-V440
      tiffin 5.10 # cat /etc/release
                             Solaris 10 6/06 s10s_u2wos_09a SPARC
                 Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
                              Use is subject to license terms.
                                   Assembled 09 June 2006
      tiffin 5.10 #
      tiffin 5.10 # ../jdk1.5.0_09/bin/java -version
      java version "1.5.0_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
      Java HotSpot(TM) Server VM (build 1.5.0_09-b01, mixed mode)
      tiffin 5.10 #
      tiffin 5.10 # ../jdk1.5.0_09/bin/java Test1 /net/jqa.ireland/export/home4/jck/JCK-runtime-15a
      OK
      tiffin 5.10 #


      NOTE: J2SE 5.0u9 "REFRESH" and Mustang are fine as shown next:

      falls 5.10 # ../5u9b02//jdk1.5.0_09/bin/java -version
      java version "1.5.0_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b02)
      Java HotSpot(TM) Server VM (build 1.5.0_09-b02, mixed mode)
      falls 5.10 # ../5u9b02//jdk1.5.0_09/bin/java Test1 /net/jqa.ireland/export/home4/jck/JCK-runtime-15a
      OK
      falls 5.10 #

      falls 5.10 # ../6/jdk1.6.0/bin/java -version
      java version "1.6.0-rc"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-b100)
      Java HotSpot(TM) Server VM (build 1.6.0-rc-b100, mixed mode)
      falls 5.10 #
      falls 5.10 # ../6/jdk1.6.0/bin/java Test1 /net/jqa.ireland/export/home4/jck/JCK-runtime-15a
      OK
      falls 5.10 #

      NOTE: I will update with conformance check in due course.

            kamg Keith Mcguigan (Inactive)
            wrockett Walter Rockett (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: