Issue Details (XML | Word | Printable)

Key: HARMONY-6069
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tim Ellison
Reporter: Andrew Cornwall
Votes: 0
Watchers: 0
Operations

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

[drlvm][testing] VMTT compiles floats and longs incorrectly in constant pool

Created: 08/Jan/09 11:31 PM   Updated: 09/Jan/09 04:48 PM
Return to search
Component/s: None
Affects Version/s: 5.0M8
Fix Version/s: 5.0M8

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works 6069-floatlongfix.diff 2009-01-08 11:48 PM Andrew Cornwall 1 kB
Java Archive File Licensed for inclusion in ASF works HARMONY-6069.jar 2009-01-08 11:56 PM Andrew Cornwall 24 kB

Patch Info: Patch Available
Estimated Complexity: Moderate
Resolution Date: 09/Jan/09 10:45 AM


 Description  « Hide
When a float is specified in the constant pool:
  /* #2 */ float = 35.0

VMTT converts it to an int and stores it with a float tag. The result is that the float is stored as:

0x00000023 (ie 35)
instead of
0x420C0000 (35.0).


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.