This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
how do I stop gcjh from generating function bodies?
- To: java at gcc dot gnu dot org
- Subject: how do I stop gcjh from generating function bodies?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- Date: 12 Nov 2001 03:07:39 -0800
- Organization: Myself
I have a method
public class C implements I {
public I returnSelfAsI() { return this; }
}
...but gcjh generates a body for it in the .h file, except that CNI
doesn't grok interfaces, so the generated .h doesn't compile (CNI
doesn't understand that it's okay to return a C when the declared
return type is an I).
How can I inhibit this behavior? I have a mass gcjh invocation as part
of my build process, so hand-editing the .h isn't a wise idea.
- a
--
If the Boston Tea Party happened today, our politicians would denounce
it as an act of Terrorism.