+2004-09-24 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/lang/StackTraceElement.java
+ (className): Renamed field to declaringClass to be compatible
+ with Sun serialization format.
+
2004-09-23 Michael Koch <konqueror@gmx.de>
* java/applet/AppletContext.java,
*
* @serial the enclosing class, if known
*/
- private final String className;
+ private final String declaringClass;
/**
* The method name in the class, null if unknown.
{
this.fileName = fileName;
this.lineNumber = lineNumber;
- this.className = className;
+ this.declaringClass = className;
this.methodName = methodName;
this.isNative = isNative;
}
*/
public String getClassName()
{
- return className;
+ return declaringClass;
}
/**
public String toString()
{
StringBuffer sb = new StringBuffer();
- if (className != null)
+ if (declaringClass != null)
{
- sb.append(className);
+ sb.append(declaringClass);
if (methodName != null)
sb.append('.');
}
StackTraceElement e = (StackTraceElement) o;
return equals(fileName, e.fileName)
&& lineNumber == e.lineNumber
- && equals(className, e.className)
+ && equals(declaringClass, e.declaringClass)
&& equals(methodName, e.methodName);
}
*/
public int hashCode()
{
- return hashCode(fileName) ^ lineNumber ^ hashCode(className)
+ return hashCode(fileName) ^ lineNumber ^ hashCode(declaringClass)
^ hashCode(methodName);
}