0

I read somewhere that GWT 2.5 now allows Class.getSimpleName.

I am using GWT 2.5, GXT 3.x.

This gave me GIN injector NPE:

GWT.log(this.getClass().getSimpleName() + commentString);

Is getting the error due to

  • The gin.jar version I am using may not be up-to-par with GWT 2.5
  • GIN does not support all features of GWT 2.5;
  • I have read wrongly, GWT does not yet support Class.getSimpleName.
  • Some other reason
    ??
4

1 回答 1

1

Yes..I too read the same and in a blind room some days.But the fact is the commit is still pending

@Daniel Kurka recently abonded the code https://gwt-review.googlesource.com/#/c/2220/

if you want you can super source from here

https://gwt-review.googlesource.com/#/c/2220/4/user/super/com/google/gwt/emul/java/lang/Class.java

or

as @Andrea commented we have to wait for sdk 2.6 :)

于 2013-04-23T07:46:36.807 回答