aspose file tools*
The moose likes GWT and the fly likes Any way to tell GWT not to translate a method in a class ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Any way to tell GWT not to translate a method in a class ?" Watch "Any way to tell GWT not to translate a method in a class ?" New topic
Author

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

Adi Vicks
Greenhorn

Joined: Feb 23, 2012
Posts: 9
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

Joined: Jul 26, 2007
Posts: 10376
    
    8

I don't think thats possible.
Why not just move these methods to some other class, or provide the source code.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Any way to tell GWT not to translate a method in a class ?