From 4b045504ae78ac6e6d8beb40e2979774ae5e3490 Mon Sep 17 00:00:00 2001 From: zhanglijun5 Date: Fri, 25 Jan 2019 15:24:36 +0800 Subject: [PATCH] add a no-argument constructor method in URL.java fix #3342 --- .../src/main/java/com/alibaba/dubbo/common/URL.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java b/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java index 2f479ce897d7..6a8885924e1e 100644 --- a/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java +++ b/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java @@ -26,6 +26,10 @@ @Deprecated public class URL extends org.apache.dubbo.common.URL { + protected URL(){ + super(); + } + public URL(org.apache.dubbo.common.URL url) { super(url.getProtocol(), url.getUsername(), url.getPassword(), url.getHost(), url.getPort(), url.getPath(), url.getParameters()); }