Community
Participate
Working Groups
build 20021022 1) Create the following class ---------------------------- public class X { public void foo() { if(true) { } Object o = {}; } } ---------------------------- 2) Compile this class There 1 error "Type mismatch: cannot convert from Object[] to Object" 3) select this error in task view The selected text is : ---------------------------- { } Object o = {} ----------------------------
In 'Parser#arrayInitializer(int length)' , 'searchPosition' is not correctly initialized. It is: int searchPosition = length == 0 ? endPosition : ai.expressions[0].sourceStart; But it must be: int searchPosition = length == 0 ? endPosition + 1 : ai.expressions [0].sourceStart; Fixed.
Verified.