summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:23:36 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:23:36 +0200
commit6d18175325bdc8e47480d01c21b24cfb77663d6a (patch)
tree17989f5a253eada3c0a627508da462c56a386580
parent0a1c42ceb91cb9bfff861af4c876087c8988821f (diff)
jvm: handle opaque's default class
-rw-r--r--src/jvm/jvm.c2
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");