-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.3.0
-
sparc
-
solaris_2.6
Name: ksC84122 Date: 06/08/99
JDK 1.3 java.lang.Class.getModifiers() returns wrong integer on NT platform.
This method called on an instance of interface returns a modifier which
indicates that interface is not abstract.
A test example which demonstrates this problem.
===== test.java ========
import java.lang.reflect.*;
class test {
public static void main(String argv[]){
int mod = Cloneable.class.getModifiers();
System.out.println("mod = " + mod);
if ( Modifier.isAbstract(mod) ) {
System.out.println( "OKAY" );
return;
}
System.out.println("Failed");
return;
}
}
========= Sample run (JDK1.3 NT) ==========
d:\home\sko>g:\jdk1.3\windows\bin\java test
mod = 513
Failed
========= Sample run (JDK1.2.2 NT) ==========
d:\home\sko>g:\jdk1.2.2\windows\bin\java test
mod = 1537
OKAY
========= Sample run (JDK1.3 Solaris) ==========
java test
mod = 1537
OKAY
======================================================================
- duplicates
-
JDK-4268223 java.lang.Class.getModifiers() works incorrectly on Solaris/HotSpot
- Closed