Skip to content

Commit

Permalink
fix constructor duping
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Apr 10, 2019
1 parent 5c54ef9 commit ac7109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/jvm/jvmMethod.ml
Expand Up @@ -162,10 +162,10 @@ class builder jc name jsig = object(self)
match kind with
| ConstructInitPlusNew ->
code#dup;
if not no_value then code#dup;
code#aconst_null haxe_empty_constructor_sig;
self#invokespecial path "<init>" jc#get_jsig (method_sig [haxe_empty_constructor_sig] None);
if not no_value then self#set_top_initialized (object_path_sig path);
if not no_value then code#dup;
let jsigs = f () in
self#invokevirtual path "new" jc#get_jsig (method_sig jsigs None);
| ConstructInit ->
Expand Down

0 comments on commit ac7109f

Please sign in to comment.