History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: BLZ-248
Type: Bug Bug
Status: Community Community
Assignee: hsee
Reporter: Rémi Flament
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
BlazeDS

Client using AMFConnection loses int values

Created: 10/01/08 01:46 PM   Updated: 10/01/08 01:46 PM
Component/s: Java AMF Client
Security Level: Public (All JIRA Users )

Severity: Data Loss/Corruption
Reproducibility: Every Time
Discoverability: High
Found in Version: BlazeDS 3.2.0
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
When a remote object method returns an int, it is transformed as a Double on the java client side.


Steps to reproduce:
1. Create a remote object on the server side and start the server
2. Create a amfconnection on the client side
3. Use this code :

   int hashcode = (Integer) amfConnection.call("myService.hashCode", new Object[0]);
 
 Actual Results:
 
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
 
 Expected Results:
 
hashcode should be an int containing the correct value

 Workaround (if any):
 
 If you know in advance that the method is going to return an int then you can use the method intValue() on the returned object.
 
Language Found: English
Bugbase Id: none
QA Owner: hsee
Participants: hsee and Rémi Flament
Browser: Firefox 2.x
JDK: Sun JDK 6
Application Server: Apache Tomcat 6.x


 All   Comments      Sort Order:
There are no comments yet on this issue.