Question about shared code

31 views
Skip to first unread message

Paul Stockley

unread,
Nov 20, 2012, 11:27:47 AM11/20/12
to google-we...@googlegroups.com
I have some classes that I want to share between server and client code. The problem is they contain methods with vargs that are not supported on the client. I only want to use these on the server. Is there some way to tell the compiler to ignore these methods for client code.

Oliver Krylow

unread,
Nov 20, 2012, 12:50:30 PM11/20/12
to google-we...@googlegroups.com
Maybe you could put more abtract classes in the shared folder, that work both for client and server. And in the server package you extend those classes with your varargs methods.


On Tue, Nov 20, 2012 at 5:27 PM, Paul Stockley <pstoc...@gmail.com> wrote:
I have some classes that I want to share between server and client code. The problem is they contain methods with vargs that are not supported on the client. I only want to use these on the server. Is there some way to tell the compiler to ignore these methods for client code.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/E1AkHDG9WmgJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Reply all
Reply to author
Forward
0 new messages