diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jvm/jvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c index d91c3a9..82998b5 100644 --- a/src/jvm/jvm.c +++ b/src/jvm/jvm.c @@ -196,9 +196,11 @@ jvm_assing_default_class(struct jvm *jvm, struct jvm_object *o) break; case JVM_OBJECT_NONE: + case JVM_OBJECT_OPAQUE: case JVM_OBJECT_ARRAY: case JVM_OBJECT_CLASS: case JVM_OBJECT_LAST: + // opaque objects should always have `this_class`. // arrays have unique classes which is handled on `jvm_new_array` // `jvm_make_class` points class's `this_class` to first object, which is class definition for a class assert(0 && "epic failure"); |