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 {
}
- duplicates
-
JDK-4244722 java.lang.Class.getModifiers() works incorrectly on Solaris
- Closed