diff options
author | Jeroen Frijters <jeroen@sumatra.nl> | 2005-04-18 08:57:50 +0000 |
---|---|---|
committer | Jeroen Frijters <jeroen@sumatra.nl> | 2005-04-18 08:57:50 +0000 |
commit | 843a50a9a98f1f5d0195b75e7d1e7b61c4784d3a (patch) | |
tree | 94ac75cb45a56370f372b767d1fdc4fda60e969a /vm | |
parent | b45d537ba4d67110764a589ff34bae554b03efe0 (diff) | |
download | classpath-843a50a9a98f1f5d0195b75e7d1e7b61c4784d3a.tar.gz |
2005-04-18 Jeroen Frijters <jeroen@frijters.net>
* java/lang/Class.java (getModifiers, newInstance): Changed
call to VMClass.getModifiers().
* vm/reference/java/lang/VMClass.java
(getModifiers(Class, boolean)): New method.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/reference/java/lang/VMClass.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vm/reference/java/lang/VMClass.java b/vm/reference/java/lang/VMClass.java index 18ab36a3f..15441fa80 100644 --- a/vm/reference/java/lang/VMClass.java +++ b/vm/reference/java/lang/VMClass.java @@ -185,11 +185,18 @@ final class VMClass * public and final, but not an interface. * * @param klass the Class object that's calling us + * @param ignoreInnerClassesAttrib if set, return the real modifiers, not + * the ones specified in the InnerClasses attribute. * @return the modifiers of this class * @see Modifer * @since 1.1 */ - static native int getModifiers(Class klass); + static int getModifiers(Class klass, boolean ignoreInnerClassesAttrib) + { + return getModifiers(klass); + } + + private static native int getModifiers(Class klass); /** * If this is a nested or inner class, return the class that declared it. |