Re: Error Gwt Sockets

2009-03-04 Thread Jason Essington

Long is an emulated type in GWT (to be compatible with longs in java.

If you are returning a long from JSNI you could use double instead

-jason
On Mar 3, 2009, at 2:44 PM, frankCostello wrote:


 Hi, I try to use  Sockets.jar, but when I compile, give me an error:

 [ERROR] Line 653: Type 'long' may not be returned from a JSNI method
  For additional info see: file:/Users/smartsr/Downloads/gwt-
 mac-1.5.3/doc/helpInfo/longJsniRestriction.html
  [ERROR] Line 714: Parameter 'value': type 'long' is not safe to
 access in JSNI code


 How do I do?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error Gwt Sockets

2009-03-04 Thread Vitali Lovich
But be careful that if you do, you're code will not work past 1.5.  In 1.6,
longs are real longs except emulated an object.  The question you need to
ask yourself is do you really need a long?  If you don't, then just use int.

If you do, then you'll need a code path for 1.5 which treats it as a double
 1.6 which treats it as a non-native integer type.

On Wed, Mar 4, 2009 at 10:59 AM, Jason Essington
jason.essing...@gmail.comwrote:


 Long is an emulated type in GWT (to be compatible with longs in java.

 If you are returning a long from JSNI you could use double instead

 -jason
 On Mar 3, 2009, at 2:44 PM, frankCostello wrote:

 
  Hi, I try to use  Sockets.jar, but when I compile, give me an error:
 
  [ERROR] Line 653: Type 'long' may not be returned from a JSNI method
   For additional info see: file:/Users/smartsr/Downloads/gwt-
  mac-1.5.3/doc/helpInfo/longJsniRestriction.html
   [ERROR] Line 714: Parameter 'value': type 'long' is not safe to
  access in JSNI code
 
 
  How do I do?
  


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Error Gwt Sockets

2009-03-03 Thread frankCostello

Hi, I try to use  Sockets.jar, but when I compile, give me an error:

[ERROR] Line 653: Type 'long' may not be returned from a JSNI method
  For additional info see: file:/Users/smartsr/Downloads/gwt-
mac-1.5.3/doc/helpInfo/longJsniRestriction.html
  [ERROR] Line 714: Parameter 'value': type 'long' is not safe to
access in JSNI code


How do I do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---