Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341280 - Response result causes ClassCastException
Summary: Response result causes ClassCastException
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: M7   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 16:26 EDT by Kenn Hussey CLA
Modified: 2011-05-10 11:57 EDT (History)
1 user (show)

See Also:
Kenn.Hussey: indigo+


Attachments
proposed patch (3.69 KB, patch)
2011-03-29 16:31 EDT, Kenn Hussey CLA
Kenn.Hussey: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenn Hussey CLA 2011-03-29 16:26:40 EDT
In the GWT runtime, URIConverter.RESPONSE_RESULT can hold either a byte array or an IO exception, depending on the result of the operation. However, an IO exception is not expected anywhere, so a ClassCastException occurs when the result is processed.
Comment 1 Kenn Hussey CLA 2011-03-29 16:31:24 EDT
Created attachment 192132 [details]
proposed patch

Here's a patch that addresses the problem. Ed, please take a look and if it's OK, I'll commit the changes.
Comment 2 Ed Merks CLA 2011-03-29 19:34:21 EDT
A slightly modified version of the patch is committed to CVS for 2.7.
Comment 3 Ed Merks CLA 2011-05-10 11:57:46 EDT
The changes are available in EMF 2.7 M7 or an earlier build.