harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r378205 - /incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java
Date Thu, 16 Feb 2006 09:08:16 GMT
Author: tellison
Date: Thu Feb 16 01:08:13 2006
New Revision: 378205

URL: http://svn.apache.org/viewcvs?rev=378205&view=rev
Log:
Fix for HARMONY-80 (GSSException has the incorrect serialized form)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java?rev=378205&r1=378204&r2=378205&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security2/src/common/javasrc/org/ietf/jgss/GSSException.java
Thu Feb 16 01:08:13 2006
@@ -25,6 +25,8 @@
  */
 public class GSSException extends Exception {
 
+    private static final long serialVersionUID = -2706218945227726672L;
+
     /**
      * @com.intel.drl.spec_ref
      */
@@ -144,21 +146,25 @@
             "DUPLICATE TOKEN", "OLD TOKEN", "UNSEQ TOKEN", "GAP TOKEN" };
 
     //major code
-    private int majorCode = FAILURE;
+    private int major = FAILURE;
 
     //minor code
-    private int minorCode /*= 0*/;
+    private int minor;
 
     //minor string
-    private String minorString;
+    private String minorMessage;
+
+    //major string
+    private String majorString;
 
     /**
      * @com.intel.drl.spec_ref
      */
     public GSSException(int majorCode) {
         if (majorCode > 0 && majorCode <= 22) {
-            this.majorCode = majorCode;
+            this.major = majorCode;
         }
+        this.majorString = errorMessages[major - 1];
     }
 
     /**
@@ -166,39 +172,39 @@
      */
     public GSSException(int majorCode, int minorCode, String minorString) {
         this(majorCode);
-        this.minorCode = minorCode;
-        this.minorString = minorString;
+        this.minor = minorCode;
+        this.minorMessage = minorString;
     }
 
     /**
      * @com.intel.drl.spec_ref
      */
     public int getMajor() {
-        return majorCode;
+        return major;
     }
 
     /**
      * @com.intel.drl.spec_ref
      */
     public String getMajorString() {
-        return errorMessages[majorCode - 1];
+        return majorString;
     }
 
     /**
      * @com.intel.drl.spec_ref
      */
     public int getMinor() {
-        return minorCode;
+        return minor;
     }
 
     /**
      * @com.intel.drl.spec_ref
      */
     public String getMinorString() {
-        if (minorCode == 0) {
+        if (minor == 0) {
             return null;
         }
-        return minorString;
+        return minorMessage;
     }
 
     /**
@@ -217,8 +223,8 @@
      * @com.intel.drl.spec_ref
      */
     public void setMinor(int minorCode, String minorString) {
-        this.minorCode = minorCode;
-        this.minorString = minorString;
+        this.minor = minorCode;
+        this.minorMessage = minorString;
     }
 
     /**
@@ -227,4 +233,4 @@
     public String toString() {
         return "GSSException: " + getMessage();
     }
-}
\ No newline at end of file
+}



Mime
View raw message