This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Illegal use of nonvirtual function call
- From: Andrew Haley <aph at redhat dot com>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 5 May 2005 18:48:39 +0100
- Subject: Re: Illegal use of nonvirtual function call
- References: <7f45d939050505100612760c3a@mail.gmail.com>
Shaun Jackman writes:
> When I compile SWT with Sun's javac and run Azureus, which uses SWT,
> all's well. When I compile SWT to java bytecode using gcj -C, I get an
> "Illegal use of nonvirtual function call" error message:
>
> java.lang.VerifyError: (class: org/eclipse/swt/dnd/DragSource$1,
> method: handleEvent signature: (Lorg/eclipse/swt/widgets/Event;)V)
> Illegal use of nonvirtualfunction call
> at org.eclipse.swt.dnd.DragSource.<init>(DragSource.java:178)
> at org.gudy.azureus2.ui.swt.views.MyTorrentsView.createDragDrop(MyTorrentsView.java:1270)
>
> [Some source code snippets follow this mail.]
>
> This looks like either a bug in SWT making use of a non-standard
> "feature" in Sun's javac, or a bug in gcj. Any idea which?
I'm guessing a bug in gcj.
> I'm trying to build a package of Azureus for Debian Sarge, which uses
> gcj 3.3.5. I'd be interested in knowing if the problem is fixed in
> either gcj 3.4.4 or 4.0, but I'd still like to find a work-around for
> 3.3.5 if possible.
This probably needs a bug report with an accompanying test case.
Andrew.