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

java.lang.Class.getModifiers() works incorrectly on Solaris/HotSpot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • hotspot
    • None
    • kestrel
    • sparc
    • solaris_2.6
    • Verified


      The following program works correctly on Windows and on Solaris/classic, but
      fails on Solaris HotSpot client 1.3beta-E-release. The interface Foo shows up
      as not having the Abstract modifier.

      import java.lang.reflect.*;

      class test {
          public static void main(String argv[]){
      int mod = Foo.class.getModifiers();
      System.out.println("mod = " + mod);
      if ( Modifier.isAbstract(mod) ) {
      System.out.println( "OKAY" );
      return;
      }
      System.out.println("Failed");
      return;
          }
      }

      interface Foo {

      }

            duke J. Duke
            dbowensunw David Bowen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: