ASM: help checking if all paths lead to return or throw

2020-01-24 Thread Milles, Eric (TR Tech, Content & Ops)
I could use some help with ASM. At the end of each constructor/method, the Groovy compiler executes the code below. The idea is to add a return in case return or throw is missing from the source code. However, if no paths can get to the extra return, NOP and ATHROW instructions are added inst

Re: ASM: help checking if all paths lead to return or throw

2020-01-24 Thread Jochen Theodorou
On 24.01.20 18:38, Milles, Eric (TR Tech, Content & Ops) wrote: I could use some help with ASM.  At the end of each constructor/method, the Groovy compiler executes the code below.  The idea is to add a return in case return or throw is missing from the source code. However, if no paths can get t