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

Class.getModifiers() loses static attribute of nested classes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Description



      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):
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: