harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-261) Static initialization of an exception must not be used
Date Tue, 28 Mar 2006 06:07:18 GMT
Static initialization of an exception must not be used
------------------------------------------------------

         Key: HARMONY-261
         URL: http://issues.apache.org/jira/browse/HARMONY-261
     Project: Harmony
        Type: Bug
  Components: Classlib  
    Reporter: Stepan Mishura


In general, it is not good to create an exception to be thrown in static. A stack trace may
be filled later (before throwing an exception) but there are also thread-safety and security
issues.

The following files in security module should be fixed:
javax/crypto/CipherSpi.java
javax/crypto/SealedObject.java
javax/crypto/spec/DESedeKeySpec.java
javax/crypto/spec/DESKeySpec.java
javax/crypto/spec/PBEKeySpec.java
javax/crypto/spec/RC2ParameterSpec.java
javax/crypto/spec/RC5ParameterSpec.java
javax/crypto/spec/SecretKeySpec.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message