Community
Participate
Working Groups
The Bug occurs in the following code: import java.util.ArrayList; public class Bug { public static void main(String[] args) { ArrayList<String> l = new ArrayList<String>(); l.add("x"); String s = ""; s += l.get(0); // X } } It compiles correctly, but will not by loaded in the RuntimeEnvironment (VerifyError). Replacing line "X" with "s=s+l.get(0);" will solve it. The bug is sometimes hard to find, because the compiler does not show it, and it is legal code (I think).
Implicit conversion were computed independantly from #computeConversion which also ensures generic casts are inserted. Added regression test: GenericTypeTest#test434. Fixed
Verified in 200412140800