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

incomplete implementation of java.lang.Enum

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • core-libs
    • sparc
    • solaris_8



      Name: ngR10089 Date: 11/26/2003



      The latest draft of "A Typesafe Enum Facility for the Javatm Programming
      Language" annonces three methods that should be in java.lang.Enum:
          
          public final String name();
          public int ordinal();
          public final Class<? extends Enum<?>> getDeclaringClass();
          public static <T extends Enum<T>> T valueOf(Class<T> enumType, String s);

      These methods are not implemented yet.

      Therefore the new JCK tests in the list below fail:
      lang/CLSS/clss393/clss39301m06/clss39301m06.html
      lang/CLSS/clss393/clss39301m16/clss39301m16.html
      lang/CLSS/clss393/clss39301m07/clss39301m07.html
      lang/CLSS/clss393/clss39301m17/clss39301m17.html
      lang/CLSS/clss393/clss39301m08/clss39301m08.html
      lang/CLSS/clss393/clss39301m18/clss39301m18.html
      api/java_lang/Enum/index.html#valueOf
      api/java_lang/Enum/index.html#getDeclaringClass
      api/java_lang/Enum/index.html#name
      api/java_lang/Enum/index.html#ordinal

      ======================================================================

            jjb Josh Bloch
            nvgsunw Nvg Nvg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: