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

Can load javax.activation.SecuritySupport12 in activation.jar of jaf1.0.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 6u18
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:

      Description

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When i run testcase with jdk1.5.0_17,i can load this class successfully.
      But can't load it with jdk1.6.0_18

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run testcase with jdk1.5.0_17and jdk1.6.0_18,you can get different result.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      load this class successfully
      ACTUAL -
      Exception in thread "main" java.lang.IllegalAccessError: class javax.activation.
      SecuritySupport12 cannot access its superclass javax.activation.SecuritySupport

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------

      public class TestClassLoader {

      /**
      * @param args
      */
      public static void main(String[] args) {
      // TODO Auto-generated method stub
      ClassLoader cls = java.lang.ClassLoader.getSystemClassLoader();
      try {
      Class c = cls.loadClass( "javax.activation.SecuritySupport12" );
      } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      }
      }

      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            bshannon Bill Shannon (Inactive)
            Reporter:
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: