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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.3.0
    • Affects Version/s: 1.3.0
    • Component/s: 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 {

      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: