Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341280

Summary: Response result causes ClassCastException
Product: [Modeling] EMF Reporter: Kenn Hussey <Kenn.Hussey>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: Ed.Merks
Version: 2.7.0Flags: Kenn.Hussey: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
proposed patch Kenn.Hussey: review?

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.