GWT complains on @override

Posted: January 12th, 2009 | Author: | Filed under: Java Ruled | Tags: | No Comments »

I recently update my java version to build 11 and first thing I found out that GWT SDK doesn’t have the latest addition from java build to reflect @override.

If you are like me who use eclipse, when you create a method like this.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class Ex1 implements EntryPoint {

@override

    public void onModuleLoad() {

        GWT.log("Out Put", null);

        final Label myLabel = new Label("Hello World");

        RootPanel.get().add(myLabel);

    }

}

Eclipse will automatically will add @override which help the compiler to understand the behavior of the method. This is a addition in java 1.6 build 11, But GWT SDK doesn’t have this update so your compiler will cough on you.



Leave a Reply

  • or, connect with
Get Adobe Flash playerPlugin by wpburn.com wordpress themes