------- Additional Comments From mckinlay at redhat dot com 2005-01-05 23:53
-------
I narrowed this down to a small test case. The following code will cause the
crash when compiled to bytecode using Sun's javac 1.5.0 (but not when
byte-compiled with gcj or ecj).
public class PR18931 {
public int getByte()
{
return 1;
}
public void ls(String p) throws Exception{
try{
p.toString();
int type=getByte();
if(type!=100){
throw new Exception("");
}
if(type==100) return;
throw new Error();
}
catch(Exception e){
throw new Exception("");
}
}
}
It occurs to me that we don't have any way to do regression tests for bytecode
compilation failures with bytecode produced by other compilers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18931