user1154644
user1154644

Reputation: 4607

No source code is available for type in GWT (abstract class)

I have a business object (called Expense) that I am trying to use in my GWT application. I have it imported in the class, but when I compile, I get the following error:

[ERROR] Line 67: No source code is available for type com.app.pojo.Expense; did you forget to inherit a required module?

Is there anything special that I have to do (addition to gwt.xml?) to use it?

Upvotes: 0

Views: 112

Answers (2)

Andrea Boscolo
Andrea Boscolo

Reputation: 3048

I dont' know how your Expense class looks like, but you can't use either Gson or SimpleDateFormat in GWT code. See the JRE emulation list of the only available types. You have to use both on the server. You can use DateTimeFormat on client/shared sides.

I'm assuming you have already added com.app.pojo as a translatable package (i.e., using source-path in your XML module).

Upvotes: 1

user1154644
user1154644

Reputation: 4607

Apparently I cannot use the gson library, nor the SimpleDateFormat class with gwt?

Upvotes: 0

Related Questions