Community
Participate
Working Groups
Build Identifier: 0.7.0 My function signature is function errorInVariation(details Status, variationNo int) and I invoke it using an integer literal testLib.errorInVariation(details, 111); Proper Java code is generated with the invocation occurs inside an if-block. Bad java code results when the invocation occurs inside an exception-block. Here the generated java code if (myT == myF != false) { AnyBoxedObject<java.lang.Integer> eze$Temp2 = null; eze$Temp2 = AnyObject.ezeWrap((int)(1)); eze_Lib_runtime_testLib().failedVariation(details, eze$Temp2); AnyBoxedObject<java.lang.Integer> eze$Temp3 = null; eze$Temp3 = AnyObject.ezeWrap((int)(111)); eze_Lib_runtime_testLib().errorInVariation(details, eze$Temp3); } } catch (AnyException exp) { eze_Lib_runtime_testLib().errorInVariation(details, (int)(1)); } The java error is The method errorInVariation(Status, AnyBoxedObject<Integer>) in the type testLib is not applicable for the arguments (Status, int) Reproducible: Always Steps to Reproduce: 1. Import project from attached archive file 2. Create the src folder 3. Clean the project 4. Get 12 java errors
Created attachment 199683 [details] Project to recreate issue
The statement block reorganization logic was not being invoked for the onexception block. This prevented the reorg code from encapsulating the function calls with boxed object arguments.
Closing this defect.