Using GWT 1.5.2, and starting with this class:
public class NamedHTML extends HTML implements HasName {
public String getName() {return null;}
public void setName(String name) {}
}
If I compile the above class in Eclipse with Project, Properties, Java
Compiler, "Compiler compliance level: 1.4", then Eclipse produces this
perplexing error message on the first line:
X The static method wrap(Element) conflicts with the abstract method
in HTML
The error goes away if make any one of these changes:
1) Switch to "Compiler compliance level: 5.0",
2) Eliminate the "implements HasName"
3) Replace "extends HTML" with "extends Label"
I understand that, in general, I need to use compiler compliance
level 5.0 with GWT 1.5.2 (because GWT 1.5.2 uses 5.0 syntax) but
I don't understand why the compiler thinks I've got a syntax
error with the original situation, but thinks my code is OK in
cases 2) and 3).
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---