flesh out classpath enough to test threading; fix indexing bug in parsePool()

This commit is contained in:
Joel Dice
2007-07-04 16:27:08 -06:00
parent 1182ea9540
commit c3320c2c97
14 changed files with 240 additions and 12 deletions

View File

@ -1,8 +1,39 @@
package java.lang;
public class StackTraceElement {
private Object method;
private int ip;
private static int NativeLine = -2;
private StackTraceElement() { }
private String class_;
private String method;
private String file;
private int line;
private StackTraceElement(String class_, String method, String file,
int line)
{
this.class_ = class_;
this.method = method;
this.file = file;
this.line = line;
}
public String getClassName() {
return class_;
}
public String getMethodName() {
return method;
}
public String getFileName() {
return file;
}
public int getLineNumber() {
return line;
}
public boolean isNativeMethod() {
return line == NativeLine;
}
}