jochen 2005/07/19 12:54:32
Modified: . status.xml
src/js/org/apache/ws/jaxme/js AbstractJavaMethod.java
Log:
The method JavaSource.addThrows(Exception) does now check, whether
an Exception is already declared.
Submitted by: Frederic Ahring, [EMAIL PROTECTED]
Revision Changes Path
1.63 +11 -4 ws-jaxme/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/ws-jaxme/status.xml,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- status.xml 19 Jul 2005 19:33:21 -0000 1.62
+++ status.xml 19 Jul 2005 19:54:32 -0000 1.63
@@ -31,6 +31,17 @@
<changes>
<release version="0.5" date="Not yet published">
+ <action dev="JW" type="enhancement" context="js">
+ Added JavaSource.getConstructor(JavaQName[]).
+ (Frederic Ahring, [EMAIL PROTECTED])
+ </action>
+ <action dev="JW" type="fix" context="js">
+ The method JavaSource.addThrows() does now verify,
+ whether an exception is already declared.
+ (Frederic Ahring, [EMAIL PROTECTED])
+ </action>
+ </release>
+ <release version="0.5beta" date="2005-Jul-13">
<action dev="JW" type="enhancement" context="generator">
Added support for mixed content.
</action>
@@ -54,10 +65,6 @@
Fixed a ClassCastException, which appeared for unknown
reasons.
</action>
- <action dev="JW" type="enhancement" context="js">
- Added JavaSource.getConstructor(JavaQName[]).
- (Frederic Ahring, [EMAIL PROTECTED])
- </action>
</release>
<release version="0.4" date="2005-May-19">
<action dev="JW" type="fix" context="xs">
1.5 +3 -1
ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java
Index: AbstractJavaMethod.java
===================================================================
RCS file:
/home/cvs/ws-jaxme/src/js/org/apache/ws/jaxme/js/AbstractJavaMethod.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractJavaMethod.java 18 May 2005 22:09:10 -0000 1.4
+++ AbstractJavaMethod.java 19 Jul 2005 19:54:32 -0000 1.5
@@ -75,7 +75,9 @@
if (e == null) {
throw new NullPointerException("The exception argument must not be
null.");
}
- exceptions.add(e);
+ if (!exceptions.contains(e)) {
+ exceptions.add(e);
+ }
}
/** <p>Adds an exception to this methods list of exceptions.</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]