jochen      2005/07/19 12:55:32

  Modified:    .        Tag: JAXME-28 status.xml
               src/js/org/apache/ws/jaxme/js Tag: JAXME-28
                        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
  No                   revision
  No                   revision
  1.61.2.2  +11 -4     ws-jaxme/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/ws-jaxme/status.xml,v
  retrieving revision 1.61.2.1
  retrieving revision 1.61.2.2
  diff -u -r1.61.2.1 -r1.61.2.2
  --- status.xml        19 Jul 2005 19:35:44 -0000      1.61.2.1
  +++ status.xml        19 Jul 2005 19:55:32 -0000      1.61.2.2
  @@ -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, fahring at de.ibm.com)
  -      </action>
        </release>
       <release version="0.4" date="2005-May-19">
         <action dev="JW" type="fix" context="xs">
  
  
  
  No                   revision
  No                   revision
  1.4.2.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.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- AbstractJavaMethod.java   18 May 2005 22:09:10 -0000      1.4
  +++ AbstractJavaMethod.java   19 Jul 2005 19:55:32 -0000      1.4.2.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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to