karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject karaf git commit: [KARAF-4429] Fix the Exception class causing issues with jaxb
Date Thu, 31 Mar 2016 08:00:55 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-2.x 5b29a4466 -> 17efb0e58


[KARAF-4429] Fix the Exception class causing issues with jaxb

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/17efb0e5
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/17efb0e5
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/17efb0e5

Branch: refs/heads/karaf-2.x
Commit: 17efb0e586040400d2f560ad57973474d5335aa4
Parents: 5b29a44
Author: cristcost <cristiano.costantini@gmail.com>
Authored: Mon Mar 21 15:26:54 2016 +0100
Committer: Guillaume Nodet <gnodet@apache.org>
Committed: Thu Mar 31 10:00:38 2016 +0200

----------------------------------------------------------------------
 exception/src/main/java/java/lang/Exception.java | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/17efb0e5/exception/src/main/java/java/lang/Exception.java
----------------------------------------------------------------------
diff --git a/exception/src/main/java/java/lang/Exception.java b/exception/src/main/java/java/lang/Exception.java
index 05c79ab..76eee71 100644
--- a/exception/src/main/java/java/lang/Exception.java
+++ b/exception/src/main/java/java/lang/Exception.java
@@ -19,6 +19,8 @@ package java.lang;
 
 import java.lang.reflect.Field;
 
+import javax.xml.bind.annotation.XmlTransient;
+
 
 /**
  * {@code Exception} is the superclass of all classes that represent recoverable
@@ -116,9 +118,15 @@ public class Exception extends Throwable {
 
     }
  
+    @XmlTransient
+    @Deprecated
     public Class[] getClassContext() {
         return classContext;
     }
+    
+    protected Class[] classContext() {
+      return classContext;
+    }
 
     private static class SecurityManagerEx extends SecurityManager
     {


Mime
View raw message