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

Class.getSimpleName() throws InternalError for class javax.crypto.SunJCE_f

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • security-libs
    • b63
    • x86
    • linux

      FULL PRODUCT VERSION :
      1.5.0_02-56

      ADDITIONAL OS VERSION INFORMATION :
      Darwin (unknown) 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc


      A DESCRIPTION OF THE PROBLEM :
      Class.getSimpleName() throws InternalError for class javax.crypto.SunJCE_f


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Class klass = Class.forName("javax.crypto.SunJCE_f");

      Class<?> enclosingClass = klass.getEnclosingClass();

      At this point, enclosing class is "javax.crypto.Cipher"!

      String simpleName = klass.getSimpleName();

      This throws java.lang.InternalError, claiming "Malformed class name".

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I was expecting "SunJCE_f"
      ACTUAL -
      java.lang.InternalError: Malformed class name

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.InternalError: Malformed class name
      at java.lang.Class.getSimpleName(Class.java:1129)


      REPRODUCIBILITY :
      This bug can be reproduced always.

            wetmore Bradford Wetmore
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: