Community
Participate
Working Groups
This defect is to hold ideas for possible optimizations. We need a compiler option, that the user can select if desired, to allow post pass-1 optimizations to occur. That way the generated java can be modified to make it more readable. Please add any suggestions as comments in this defect.
Will asked to have his comments added: I noticed the code generated for a simple literal number is fairly complex. For example, I have a library with these 2 functions: function test() testFunction(3, "Hey"); end function testFunction(intVal int in, stringVal string in) returns (int) // do something return (0); end The generated code is: public void test() { int eze$Temp1; eze$Temp1 = (int)(short)((short) 3); testFunction(eze$Temp1, "Hey"); } public int testFunction(Integer intVal, String stringVal) { return (int)(short)((short) 0); } eze$Temp1 seems unnecessary and "3" could be passed directly (like "Hey" is getting passed) instead. Also note that "return (0)" is getting expanded more than necessary.