GCJ problem with org.xml.sax package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux