Community
Participate
Working Groups
Support & | xor along with the assigning forms, &= |= xor=
As of 8/27, this is mostly done. The only part left is that we generate bad code for the assigning forms when the LHS is nullable. We'll generate something like "int3n &= int2" which will result in a NullPointerException if either operand is null.
Shouldn't eglx.lang.ESmallInt.egl also have the bitwise operators in it. I assume this is why I'm get these validation errors: Multiple markers at this line - IWN.JavaGen.9998.e 53/1163 Exception occurred: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError - IWN.JavaGen.9999.e 53/1163 Stack Trace: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError For actual SmallInt; int2 SmallInt; int1 SmallInt; actual = int1 & int2; I'm not sure if this is a generation, language, or compiler problem
No, we only support bitwise operators with ints in EDT. That's a compiler bug.
I've committed the code for the generator side to throw an exception (based on the new nullable spec), however before this is complete the nullable spec has to be implemented (next iteration) and the runtime has to be changed to match the EGL definition file.
Created attachment 204042 [details] testcase
This is finished. My testcase is attached.
Closing all JavaGen enhancements that are in the Resolved state.