Permalink
Browse files

fix com.alibaba.dubbo.common.json.JSONTest#testException failure

  • Loading branch information...
1 parent 6b9452a commit 2c4dc6c8796e12866c07dc358e3247e77ea8fc4e @beiwei30 beiwei30 committed Jun 12, 2016
@@ -1,18 +1,18 @@
-/*
- * Copyright 1999-2011 Alibaba Group.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+/*
+ * Copyright 1999-2011 Alibaba Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.alibaba.dubbo.common.json;
import java.io.IOException;
@@ -115,7 +115,8 @@ else if( Collection.class.isAssignableFrom(c) )
{
if ((obj instanceof Throwable) && (
"localizedMessage".equals(pn)
- || "cause".equals(pn)
+ || "cause".equals(pn)
+ || "suppressed".equals(pn)
|| "stackTrace".equals(pn))) {
continue;
}
@@ -30,7 +30,6 @@
public class JSONTest {
@Test
- @Ignore
public void testException() throws Exception {
MyException e = new MyException("001", "AAAAAAAA");

0 comments on commit 2c4dc6c

Please sign in to comment.