简体   繁体   中英

Class.getSimpleName NPE with GIN, GWT 2.5

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
    ??

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 :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM