* GCJ problem with org.xml.sax package
@ 2005-08-12 7:01 S. Park
0 siblings, 0 replies; only message in thread
From: S. Park @ 2005-08-12 7:01 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-12 7:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 7:01 GCJ problem with org.xml.sax package S. Park
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).