------- Comment #3 from tromey at gcc dot gnu dot org 2007-01-09 18:46 ------- We already only support 'extern "Java"' classes where the body of the class is written in Java and compiled with gcj. The reason for this is that a Java class has a lot of required metadata which g++ does not know how to generate.
So, I think the only truly supported way to make an extern "Java" class is via gcjh. (Well, plus a couple of special cases in libjava.) Given this, I think it would be fine to just have a constructor-less extern "Java" class be a fatal error. The Java compiler will always emit a default constructor, and hence gcjh-generated headers will always be correct. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30293