[cp-patches] RFC: First steps to address PR27649

Vivek Lakshmanan vivekl at redhat.com
Wed Jun 7 23:20:48 UTC 2006


For PR27649: making it easy to separate crypto specific classes into an 
independent jar, by removing direct calls to
gnu.classpath.SystemProperties. These calls have been replaced by 
AccessController.doPrivileged
calls using GetPropertyAction (for improving readability).
Thanks,
Vivek

Changelog:

2006-06-07  Vivek Lakshmanan  <vivekl at redhat.com>

    * gnu/classpath/debug/Simple1LineFormatter.java: Use
      AccessController.doPrivileged instead of SystemProperties.getProperty.
    * gnu/classpath/debug/SystemLogger.java: Likewise.
    * gnu/java/security/PolicyFile.java: Likewise and cut unnecessary
      repeated getProperty calls for "file.seperator".
    (refresh): Since already in privileged block, call System.getProperty
    instead of SystemProperties.getProperty.
    * gnu/java/security/key/dss/DSSKey.java
    (toString): Use AccessController.doPrivileged instead of
    SystemProperties.getProperty.
    * gnu/java/security/key/dss/DSSPrivateKey.java
    (toString): Likewise.
    * gnu/java/security/key/dss/DSSPublicKey.java
    (toString): Likewise.
    * gnu/java/security/key/rsa/GnuRSAKey.java
    (toString): Likewise.
    * gnu/java/security/key/rsa/GnuRSAPrivateKey.java
    (toString): Likewise.
    * gnu/java/security/key/rsa/GnuRSAPublicKey.java
    (toString): Likewise.
    * gnu/javax/crypto/sasl/plain/PasswordFile.java: Likewise.
    
    
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classpath-crypto-SystemProperties.patch
Type: text/x-patch
Size: 13626 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060607/5d1f4555/classpath-crypto-SystemProperties.bin


More information about the Classpath-patches mailing list