harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: svn commit: r415716 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src: main/java/common/java/security/AlgorithmParameterGenerator.java test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Te
Date Wed, 21 Jun 2006 05:39:20 GMT
Hi Tim,

AlgorithmParameterGenerator.init(int) doesn't declare exceptions to be
thrown[1].

Thanks,
Stepan.

[1]
http://java.sun.com/j2se/1.5.0/docs/api/java/security/AlgorithmParameterGenerator.html#init(int
)


-----Original Message-----
From: tellison@apache.org [mailto:tellison@apache.org]
Sent: Tuesday, June 20, 2006 10:55 PM
To: harmony-commits@incubator.apache.org
Subject: svn commit: r415716 - in
/incubator/harmony/enhanced/classlib/trunk/modules/security/src:
main/java/common/java/security/AlgorithmParameterGenerator.java
test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java



Author: tellison

Date: Tue Jun 20 08:54:49 2006

New Revision: 415716



URL: http://svn.apache.org/viewvc?rev=415716&view=rev

Log:

Add exception throws declaration as in spec.



Modified:


incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/AlgorithmParameterGenerator.java


incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java



Modified:
incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/AlgorithmParameterGenerator.java

URL:
http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/AlgorithmParameterGenerator.java?rev=415716&r1=415715&r2=415716&view=diff

==============================================================================

---
incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/AlgorithmParameterGenerator.java
(original)

+++
incubator/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/AlgorithmParameterGenerator.java
Tue Jun 20 08:54:49 2006

@@ -143,7 +143,7 @@

      * @com.intel.drl.spec_ref

      *

      */

-    public final void init(int size) {

+    public final void init(int size) throws
InvalidAlgorithmParameterException {

         spiImpl.engineInit(size, randm);

     }





Modified:
incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java

URL:
http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java?rev=415716&r1=415715&r2=415716&view=diff

==============================================================================

---
incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java
(original)

+++
incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/AlgorithmParameterGenerator1Test.java
Tue Jun 20 08:54:49 2006

@@ -306,7 +306,7 @@

      * Assertion: returns AlgorithmParameters object

      */

     public void testAlgorithmParameterGenerator10()

-            throws NoSuchAlgorithmException {

+            throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException {

         if (!DSASupported) {

             fail(validAlgName + " algorithm is not supported");

             return;

------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message