Hmm, it works fine for me using this code:
package org.eclim.test.correct;
import java.util.ArrayList;
public class TestCorrect
{
private ArrayList<Object> list;
public String get(int index){
String result = list.get(index);
return result;
}
}
:JavaCorrect on line 10
Type mismatch: cannot convert from Object to String
0.176: Add cast to 'String'
...
public String get(int index){
String result = (String) list.get(index);
return result;
...
}
1.176: Change type of 'result' to 'Object'
...
public String get(int index){
Object result = list.get(index);
return result;
...
}
If you open up the eclipse gui and edit your file in the eclipse java
editor, does it give you the cast as a correction proposal? If so, can
you give me a sample file which reproduces the issue (cast proposal in
the eclipse gui, but no cast proposal via eclim)?
--
eric