From: "S. Park" <kanzuri@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: GCJ problem with org.xml.sax package
Date: Fri, 12 Aug 2005 07:01:00 -0000 [thread overview]
Message-ID: <42FC4930.6060504@gmail.com> (raw)
I'm experiencing some strange behavior with a simple class compiled with
gcj 4.1 on FreeBSD 4.11 and 5.4 IA32. It compiles and runs as is, but if
I subclass anything in the package org.xml.sax (e.g. by uncommenting the
'extends' clause below), the executable seg faults. What's strange is
that I can instantiate objects of types in that same package within the
body of the main method. The problem only appears when subtyping. The
test class looks like this:
import java.util.HashMap;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.InputSource;
public class Foo // extends DefaultHandler
{
public static void main(String argv[])
{
InputSource is = new InputSource();
String enc = is.getEncoding();
DefaultHandler dh = new DefaultHandler();
try
{
dh.startDocument();
}
catch (Exception e)
{
System.err.println(e.getMessage());
}
System.out.println(enc);
}
}
Has anyone else run into this?
Sooyoung
reply other threads:[~2005-08-12 7:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=42FC4930.6060504@gmail.com \
--to=kanzuri@gmail.com \
--cc=gcc-help@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).