gizmo
gizmo copied to clipboard
checker for returnValue and contructor super call and auto add
fix #67 fix #65
Hello, code is ready with PR. I have just a doubt about impact of the classCreator close.
https://github.com/quarkusio/gizmo/blob/bda4d0794f8b808c095c1351ba6bc48f92f50403/src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java#L987 Else it is mostly store and load return handle so no impact because it call visitor ...
I ma thinking to split isValid to isMissingReturnValue and isMissingSuper or this call in ctor. To auto add call to object one by default:
ctor.invokeSpecialMethod(
MethodDescriptor.ofConstructor("java.lang.Object"),
ctor.getThis());
wdyt ?
@gsmet @stuartwdouglas @Sanne can you review it ?