From: rpcee <rp...@op...> - 2002-04-24 12:25:34
|
I'm having a bit of trouble calling this method, it seems to return the int value as a string rather than the method modifier string representation. any clues would be much appreciated. in java: import java.lang.reflect.Modifier; public class Mods { public static void main(String [] args) { System.out.println(Modifier.toString(Modifier.PUBLIC | Modifier.ABSTRACT)); } } $ java Mods public abstract In jython 2.1: $ jython Jython 2.1 on java1.3.1 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import java >>> m=java.lang.reflect.Modifier >>> m.toString(m.ABSTRACT | m.PUBLIC) '1025' >>> -- Powered by Outblaze |