This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/18931] jar -> .so optimization problem
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 5 Jan 2005 23:53:31 -0000
- Subject: [Bug java/18931] jar -> .so optimization problem
- References: <20041210191853.18931.overholt@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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