Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Any way to tell GWT not to translate a method in a class ?

 
Adi Vicks
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My client is using a class which has member variables that I need , but also there are some other methods that I don't need to use. But GWT complains as those methods uses other dependency classes , and it asks me to provide source for those dependency classes as well.

So I am wondering if there is a way to tell GWT to translate a class but don't translate some of its methods. Something similar to @Transient in hibernate.

 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think thats possible.
Why not just move these methods to some other class, or provide the source code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic