Community
Participate
Working Groups
Build Identifier: 20110609-2236 Scoping operators with primitives (as 2nd argument) will not choose the "best match" but the first compatible one, which is not correct for the Java TypeSystem. Details: http://www.eclipse.org/forums/index.php/t/275743/ Reproducible: Always Steps to Reproduce: 1. Use the following code: op testLiteralsOperator { // example 1 var ^ok = 0 ^ok = ^ok + 1 // example 2 val ^sec = 30000 Thread::sleep( ^sec * 1000 ) } 2. You get wrong code then: { int ok = 0; double _operator_plus = IntegerExtensions.operator_plus( ok, 1 ); ok = _operator_plus; final int sec = 30000; double _operator_multiply = IntegerExtensions.operator_multiply( sec, 1000 ); Thread.sleep( _operator_multiply ); } 3.
That's already been fixed with bug 367207 in MASTER.
Closing all bugs that were set to RESOLVED before Neon.0