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:
parent
bcb36c3e02
commit
2127637945
444 changed files with 75778 additions and 30731 deletions
|
@ -121,6 +121,8 @@ public abstract class Charset implements Comparable
|
|||
*
|
||||
* This may be set by the user or VM with the file.encoding
|
||||
* property.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
public static Charset defaultCharset()
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* CharsetProvider.java -- charset service provider interface
|
||||
Copyright (C) 2002 Free Software Foundation
|
||||
Copyright (C) 2002, 2006 Free Software Foundation
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -67,8 +67,12 @@ public abstract class CharsetProvider
|
|||
*/
|
||||
protected CharsetProvider()
|
||||
{
|
||||
// We only do the security check for custom providers, not for the
|
||||
// built in ones.
|
||||
SecurityManager s = System.getSecurityManager();
|
||||
if (s != null)
|
||||
if (s != null &&
|
||||
! (this instanceof gnu.java.nio.charset.Provider
|
||||
|| this instanceof gnu.java.nio.charset.iconv.IconvProvider))
|
||||
s.checkPermission(new RuntimePermission("charsetProvider"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue