public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "mckinlay at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/18931] jar -> .so optimization problem
Date: Wed, 05 Jan 2005 23:53:00 -0000	[thread overview]
Message-ID: <20050105235331.26722.qmail@sourceware.org> (raw)
In-Reply-To: <20041210191853.18931.overholt@redhat.com>


------- 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


  parent reply	other threads:[~2005-01-05 23:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-10 19:18 [Bug java/18931] New: " overholt at redhat dot com
2004-12-10 19:41 ` [Bug middle-end/18931] " pinskia at gcc dot gnu dot org
2004-12-10 19:43 ` overholt at redhat dot com
2004-12-14 20:16 ` tromey at gcc dot gnu dot org
2004-12-16 14:59 ` [Bug java/18931] " aph at gcc dot gnu dot org
2004-12-16 15:00 ` aph at gcc dot gnu dot org
2004-12-17 15:10 ` cvs-commit at gcc dot gnu dot org
2004-12-17 17:24 ` pinskia at gcc dot gnu dot org
2005-01-05 21:49 ` overholt at redhat dot com
2005-01-05 21:58 ` pinskia at gcc dot gnu dot org
2005-01-05 23:53 ` mckinlay at redhat dot com [this message]
2005-01-05 23:57 ` tromey at gcc dot gnu dot org
2005-01-06  1:03 ` pinskia at gcc dot gnu dot org
2005-01-18 12:05 ` [Bug java/18931] Java bytecode ICE in except.c remove_unreachable_regions aph at gcc dot gnu dot org
2005-01-18 12:06 ` aph at gcc dot gnu dot org
2005-01-18 14:51 ` overholt at redhat dot com
2005-04-20  2:01 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050105235331.26722.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).