From: Tony Tkacik Date: Thu, 21 Aug 2014 08:32:11 +0000 (+0200) Subject: Bug 1586: Do not use JaxRS 2.0 unnecessarily X-Git-Tag: release/helium~245^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=1d202c481a5e6cf1d8a029ae17b5e417cb4b72cd;hp=-c;ds=sidebyside Bug 1586: Do not use JaxRS 2.0 unnecessarily As it turned out our container uses jax-rs 1.0 so we removed unnecessarily call to 2.0 constructor. Change-Id: I23c38871050c34d721b21369da5b162a18925a9d Signed-off-by: Tony Tkacik --- 1d202c481a5e6cf1d8a029ae17b5e417cb4b72cd diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java index 2ceef3203c..bfa987ab8d 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfDocumentedException.java @@ -87,7 +87,9 @@ public class RestconfDocumentedException extends WebApplicationException { * Constructs an instance with the given errors. */ public RestconfDocumentedException(String message, Throwable cause, List errors) { - super(message, cause); + // FIXME: We override getMessage so supplied message is lost for any public access + // this was lost also in original code. + super(cause); if(!errors.isEmpty()) { this.errors = ImmutableList.copyOf(errors); } else {