jochen 2005/07/19 12:55:02
Modified: src/js/org/apache/ws/jaxme/js Tag: v0_4
AbstractJavaMethod.java
. Tag: v0_4 status.xml
Log:
The method JavaSource.addThrows(Exception) does now check, whether
an Exception is already declared.
Submitted by: Frederic Ahring, [EMAIL PROTECTED]
Revision Changes Path
No revision
No revision
1.3.4.1 +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.3
retrieving revision 1.3.4.1
diff -u -r1.3 -r1.3.4.1
--- AbstractJavaMethod.java 16 Feb 2004 23:39:55 -0000 1.3
+++ AbstractJavaMethod.java 19 Jul 2005 19:55:02 -0000 1.3.4.1
@@ -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>
No revision
No revision
1.45.2.16 +5 -0 ws-jaxme/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/ws-jaxme/status.xml,v
retrieving revision 1.45.2.15
retrieving revision 1.45.2.16
diff -u -r1.45.2.15 -r1.45.2.16
--- status.xml 19 Jul 2005 19:34:49 -0000 1.45.2.15
+++ status.xml 19 Jul 2005 19:55:02 -0000 1.45.2.16
@@ -55,6 +55,11 @@
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.4" date="2005-May-19">
<action dev="JW" type="fix" context="xs">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]