Imported GNU Classpath 0.20
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r109831
This commit is contained in:
@@ -583,8 +583,7 @@ public final class Class implements Serializable
|
||||
/**
|
||||
* Returns the <code>Package</code> in which this class is defined
|
||||
* Returns null when this information is not available from the
|
||||
* classloader of this class or when the classloader of this class
|
||||
* is null.
|
||||
* classloader of this class.
|
||||
*
|
||||
* @return the package for this class, if it is available
|
||||
* @since 1.2
|
||||
@@ -837,7 +836,10 @@ public final class Class implements Serializable
|
||||
*/
|
||||
public int getModifiers()
|
||||
{
|
||||
return VMClass.getModifiers (this, false);
|
||||
int mod = VMClass.getModifiers (this, false);
|
||||
return (mod & (Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE |
|
||||
Modifier.FINAL | Modifier.STATIC | Modifier.ABSTRACT |
|
||||
Modifier.INTERFACE));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user