mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
bugfixes; add NullPointerException.java
This commit is contained in:
parent
823d764998
commit
527f46d53d
19
classpath/java/lang/NullPointerException.java
Normal file
19
classpath/java/lang/NullPointerException.java
Normal file
@ -0,0 +1,19 @@
|
||||
package java.lang;
|
||||
|
||||
public class NullPointerException extends RuntimeException {
|
||||
public NullPointerException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public NullPointerException(String message) {
|
||||
this(message, null);
|
||||
}
|
||||
|
||||
public NullPointerException(Throwable cause) {
|
||||
this(null, cause);
|
||||
}
|
||||
|
||||
public NullPointerException() {
|
||||
this(null, null);
|
||||
}
|
||||
}
|
2
makefile
2
makefile
@ -16,7 +16,7 @@ src = src
|
||||
classpath = classpath
|
||||
test = test
|
||||
|
||||
input = $(cls)/Reflection.class
|
||||
input = $(cls)/Threads.class
|
||||
|
||||
cxx = g++
|
||||
cc = gcc
|
||||
|
@ -2048,27 +2048,27 @@ resolveClass(Thread* t, object spec)
|
||||
|
||||
if (data) {
|
||||
if (Verbose) {
|
||||
fprintf(stderr, "parsing %s\n", &byteArrayBody
|
||||
(t, spec, 0));
|
||||
fprintf(stderr, "parsing %s\n", &byteArrayBody(t, spec, 0));
|
||||
}
|
||||
|
||||
// parse class file
|
||||
class_ = parseClass(t, data->start(), data->length());
|
||||
data->dispose();
|
||||
|
||||
if (Verbose) {
|
||||
fprintf(stderr, "done parsing %s\n", &byteArrayBody
|
||||
(t, className(t, class_), 0));
|
||||
}
|
||||
if (LIKELY(t->exception == 0)) {
|
||||
if (Verbose) {
|
||||
fprintf(stderr, "done parsing %s\n", &byteArrayBody(t, spec, 0));
|
||||
}
|
||||
|
||||
object bootstrapClass = hashMapFind
|
||||
(t, t->vm->bootstrapClassMap, spec, byteArrayHash, byteArrayEqual);
|
||||
object bootstrapClass = hashMapFind
|
||||
(t, t->vm->bootstrapClassMap, spec, byteArrayHash, byteArrayEqual);
|
||||
|
||||
if (bootstrapClass) {
|
||||
PROTECT(t, bootstrapClass);
|
||||
if (bootstrapClass) {
|
||||
PROTECT(t, bootstrapClass);
|
||||
|
||||
updateBootstrapClass(t, bootstrapClass, class_);
|
||||
class_ = bootstrapClass;
|
||||
updateBootstrapClass(t, bootstrapClass, class_);
|
||||
class_ = bootstrapClass;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2132,7 +2132,7 @@ run(Thread* t)
|
||||
|
||||
pokeInt(t, t->frame + FrameIpOffset, t->ip);
|
||||
for (; frame >= 0; frame = frameNext(t, frame)) {
|
||||
if (frame <= base) {
|
||||
if (frame < base) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -212,7 +212,7 @@ class MySystem: public System {
|
||||
}
|
||||
|
||||
virtual void dispose() {
|
||||
assert(s, context == 0);
|
||||
//assert(s, context == 0);
|
||||
pthread_mutex_destroy(&mutex);
|
||||
pthread_cond_destroy(&condition);
|
||||
s->free(this);
|
||||
|
Loading…
Reference in New Issue
Block a user