Skip to main content



      Home
Home » Newcomers » Newcomers » Migrating from Visual Age for Java - VAJ
Migrating from Visual Age for Java - VAJ [message #98555] Tue, 30 August 2005 11:40 Go to next message
Eclipse UserFriend
I'm on a development project where we have a servlet that was originally
done using Visual Age for Java - VAJ. The build for the VAJ project was an
ant .xml file, so I decided to try to build this project with Eclipse 3.1.
I'm getting an error on some classes that extend JDialog.

The error text is:
"The return type is incompatible with Dialog.getAccessibleContext(),
JDialog.getAccessibleContext()"

The margin error symbol shows this on the class declaration source line.

How do I research and/or correct this error?
Re: Migrating from Visual Age for Java - VAJ [message #98585 is a reply to message #98555] Tue, 30 August 2005 14:21 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Kevin Gallaway wrote:
> I'm on a development project where we have a servlet that was originally
> done using Visual Age for Java - VAJ. The build for the VAJ project was
> an ant .xml file, so I decided to try to build this project with Eclipse
> 3.1. I'm getting an error on some classes that extend JDialog.
> The error text is: "The return type is incompatible with
> Dialog.getAccessibleContext(), JDialog.getAccessibleContext()"
> The margin error symbol shows this on the class declaration source line.
> How do I research and/or correct this error?
>

Couple of comments:
A) I don't think this really relates to your migration from VAJ.
B) Why do servlet classes use Swing? I'm not sure that is even allowed
by the servlet spec.
C) The error indicates that your subclass of JDialog has a return type
for getAccessibleContext() that is not compatible with the declaration
in the superclasses (JDialog and Dialog). Check what return type your
version of the method has and make sure it is assignment-compatible with
what JDialog is declaring.
D) If I'm correct about C), this is a compilation error that should have
happened with your previous build. Perhaps you have been using a vastly
different version of Swing where the return type was different? I doubt
that they would change the return type, but I can't think of any other
reason why it would have worked before but not now.

HTH,
Eric
Previous Topic:Solaris 8 (SPARC/GTK 2) ... getting gtk2
Next Topic:adding documentation to eclipse help system
Goto Forum:
  


Current Time: Tue Jul 01 15:08:14 EDT 2025

Powered by FUDForum. Page generated in 0.11353 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top