You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mu...@apache.org on 2009/07/06 21:12:10 UTC
svn commit: r791571 -
/xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
Author: mullan
Date: Mon Jul 6 19:12:10 2009
New Revision: 791571
URL: http://svn.apache.org/viewvc?rev=791571&view=rev
Log:
Fixed Bug 47483: Remove JDK 1.5 API dependencies
Modified:
xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
Modified: xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java
URL: http://svn.apache.org/viewvc/xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java?rev=791571&r1=791570&r2=791571&view=diff
==============================================================================
--- xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java (original)
+++ xml/security/trunk/src/org/apache/xml/security/encryption/XMLCipher.java Mon Jul 6 19:12:10 2009
@@ -2734,7 +2734,8 @@
try {
tmpAlgorithm = new URI(algorithm);
} catch (URI.MalformedURIException fmue) {
- throw new IllegalArgumentException(fmue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(fmue);
}
algorithmURI = tmpAlgorithm.toString();
}
@@ -2795,7 +2796,8 @@
try {
tmpAlgorithm = new URI(algorithm);
} catch (URI.MalformedURIException mfue) {
- throw new IllegalArgumentException(mfue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(mfue);
}
algorithmURI = tmpAlgorithm.toString();
}
@@ -3327,7 +3329,8 @@
try {
tmpType = new URI(type);
} catch (URI.MalformedURIException mfue) {
- throw new IllegalArgumentException(mfue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(mfue);
}
this.type = tmpType.toString();
}
@@ -3365,7 +3368,8 @@
try {
tmpEncoding = new URI(encoding);
} catch (URI.MalformedURIException mfue) {
- throw new IllegalArgumentException(mfue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(mfue);
}
this.encoding = tmpEncoding.toString();
}
@@ -3444,7 +3448,8 @@
try {
tmpAlgorithm = new URI(algorithm);
} catch (URI.MalformedURIException mfue) {
- throw new IllegalArgumentException(mfue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(mfue);
}
this.algorithm = tmpAlgorithm.toString();
encryptionMethodInformation = new LinkedList();
@@ -3625,7 +3630,8 @@
try {
tmpTarget = new URI(target);
} catch (URI.MalformedURIException mfue) {
- throw new IllegalArgumentException(mfue);
+ throw (IllegalArgumentException)
+ new IllegalArgumentException().initCause(mfue);
}
this.target = tmpTarget.toString();
}