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

Class.getModifiers() loses static attribute of nested classes

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.5.1
    • Verified



      Name: laC46010 Date: 08/04/98


      The Class.getModifiers() returns wrong bits for nested classes.
      The method does not return specified in the source code static
      modifier.
      -----------------output------------------
       Test$Static
      ---------------Test.java-----------------
      import java.lang.reflect.Modifier;
      public class Test {
          static class Static {
          }

          static public void main(String argv[]) {
              Class c = Test.Static.class;
              System.out.println(Modifier.toString(c.getModifiers()) + " " +
                                 c.getName());
          }
      }
       Justification:
      The JCK SignatureTest can not create correct signature file.
      -----------------------------------------
      Hook 5(hook5):
      ======================================================================

            apalanissunw Anand Palaniswamy (Inactive)
            leosunw Leo Leo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: