You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/08/08 20:22:01 UTC
cxf-xjc-utils git commit: [CXFXJC-22] Make sure we don't create new
W3CEndpointReference objects (no default constructor)
Repository: cxf-xjc-utils
Updated Branches:
refs/heads/master 1336710aa -> 1eebd55a5
[CXFXJC-22] Make sure we don't create new W3CEndpointReference objects (no default constructor)
Project: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/commit/1eebd55a
Tree: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/tree/1eebd55a
Diff: http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/diff/1eebd55a
Branch: refs/heads/master
Commit: 1eebd55a5cde0f7683c76f0bdfa1011f805f6ee8
Parents: 1336710
Author: Daniel Kulp <dk...@apache.org>
Authored: Tue Aug 8 16:21:31 2017 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Tue Aug 8 16:21:31 2017 -0400
----------------------------------------------------------------------
dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf-xjc-utils/blob/1eebd55a/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
----------------------------------------------------------------------
diff --git a/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java b/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
index 86680ef..28b7b9b 100644
--- a/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
+++ b/dv/src/main/java/org/apache/cxf/xjc/dv/DefaultValuePlugin.java
@@ -202,7 +202,8 @@ public class DefaultValuePlugin {
|| isElementRequired(particle))) {
String varName = f.getPropertyInfo().getName(false);
JFieldVar var = co.implClass.fields().get(varName);
- if (var != null) {
+ if (var != null
+ && !"javax.xml.ws.wsaddressing.W3CEndpointReference".equals(f.getRawType().fullName())) {
var.init(JExpr._new(f.getRawType()));
}
}