You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Stepan Mishura (JIRA)" <ji...@apache.org> on 2006/04/08 11:51:23 UTC

[jira] Closed: (HARMONY-261) Static initialization of an exception must not be used

     [ http://issues.apache.org/jira/browse/HARMONY-261?page=all ]
     
Stepan Mishura closed HARMONY-261:
----------------------------------

    Resolution: Fixed

Updated patch was applied at at repo revision 391558.

> 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
>     Assignee: Stepan Mishura
>  Attachments: fixHarmony261.txt
>
> 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