ws-jaxme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joc...@apache.org
Subject svn commit: r482186 - in /webservices/jaxme/branches/b0_5: src/js/org/apache/ws/jaxme/js/util/JavaParser.java status.xml
Date Mon, 04 Dec 2006 14:29:34 GMT
Author: jochen
Date: Mon Dec  4 06:29:33 2006
New Revision: 482186

URL: http://svn.apache.org/viewvc?view=rev&rev=482186
Log:
The JavaParser wasn't able to handle "implements I1, I2, ...", or
"extends C1, C2, ...".
Submitted-By: Andreas Neumann, Andreas.Neumann@arvato-mobile.de
PR: JAXME-89

Modified:
    webservices/jaxme/branches/b0_5/src/js/org/apache/ws/jaxme/js/util/JavaParser.java
    webservices/jaxme/branches/b0_5/status.xml

Modified: webservices/jaxme/branches/b0_5/src/js/org/apache/ws/jaxme/js/util/JavaParser.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/b0_5/src/js/org/apache/ws/jaxme/js/util/JavaParser.java?view=diff&rev=482186&r1=482185&r2=482186
==============================================================================
--- webservices/jaxme/branches/b0_5/src/js/org/apache/ws/jaxme/js/util/JavaParser.java (original)
+++ webservices/jaxme/branches/b0_5/src/js/org/apache/ws/jaxme/js/util/JavaParser.java Mon
Dec  4 06:29:33 2006
@@ -339,15 +339,15 @@
     private void parseImplementsOrExtends(JavaSource pSource, AST pAST, int pType) {
         AST implementsAST = findChild(pAST, pType);
         if (implementsAST == null) {
-        	throw new IllegalStateException("AST implements not found");
+                throw new IllegalStateException("AST implements not found");
         }
-        if (implementsAST.getFirstChild() != null) {
-            String ident = parseIdentifier(implementsAST);
+        for (AST child = implementsAST.getFirstChild();  child != null;  child = child.getNextSibling())
{
+            String ident = parseSimpleIdentifier(child);
             JavaQName qName = getQName(ident);
             if (pType == JavaRecognizer.IMPLEMENTS_CLAUSE) {
-            	pSource.addImplements(qName);
+                pSource.addImplements(qName);
             } else {
-            	pSource.addExtends(qName);
+                pSource.addExtends(qName);
             }
         }
     }

Modified: webservices/jaxme/branches/b0_5/status.xml
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/b0_5/status.xml?view=diff&rev=482186&r1=482185&r2=482186
==============================================================================
--- webservices/jaxme/branches/b0_5/status.xml (original)
+++ webservices/jaxme/branches/b0_5/status.xml Mon Dec  4 06:29:33 2006
@@ -44,6 +44,11 @@
         Fixed an NPE, which occurred, if an attribute was referencing an unknown
         type.
       </action>
+      <action dev="JW" type="fix" context="js">
+        The JavaParser wasn't able to handle "implements I1, I2, ...", or
+        "extends C1, C2, ...".
+        (Andreas Neumann, Andreas.Neumann@arvato-mobile.de, JAXME-89)
+      </action>
     </release>
     <release version="0.5.2" date="25-Oct-2006">
       <action dev="JW" type="enhancement" context="generator">



---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Mime
View raw message