axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ven...@apache.org
Subject svn commit: r267187 - /webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
Date Fri, 02 Sep 2005 11:24:27 GMT
Author: venkat
Date: Fri Sep  2 04:24:21 2005
New Revision: 267187

URL: http://svn.apache.org/viewcvs?rev=267187&view=rev
Log:
Fix for the AXIS-2165. Need to write full constructor when a type dervies from other by extension.

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java?rev=267187&r1=267186&r2=267187&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java Fri Sep
 2 04:24:21 2005
@@ -134,15 +134,20 @@
             // by restriction?  if so, do not emit instance variables
             // or accessor/mutator pairs as those are inherited from
             // the super type, which must be non-null.
-            if ((null != extendType)
-                    && (null
-                    != SchemaUtils.getComplexElementRestrictionBase(
-                            type.getNode(), emitter.getSymbolTable()))) {
-                enableMemberFields = false;
-                enableGetters = false;
-                enableSetters = false;
-                enableEquals = false;
-                enableHashCode = false;
+            if (null != extendType) {
+            	if (null != SchemaUtils.getComplexElementRestrictionBase(
+                        type.getNode(), emitter.getSymbolTable())) {
+	                enableMemberFields = false;
+	                enableGetters = false;
+	                enableSetters = false;
+	                enableEquals = false;
+	                enableHashCode = false;
+            	} else { 
+            		// derived by extension. 
+            		// Write full constructor, so that instance variables 
+            		// in super class are intialized.
+        			enableFullConstructor = true;
+            	}
             }
         }
 



Mime
View raw message