[ https://issues.apache.org/jira/browse/TUSCANY-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513278 ]
Kelvin Goodson commented on TUSCANY-1429: ----------------------------------------- Fuhwei, thanks for this. One issue I have is the casting of HelperContexts in the test cases to HelperContextImpls. I think the new method in SDOHelper should be getXMLStreamHElper(HelperContext), and then we can get rid of all the casting to impls. There's no need for any change to what is now the SDOHelperImpl.createXMLStreamHelper method, since it is really already getter method. > Using default helper context got ClassCastException due to T-1317 > ----------------------------------------------------------------- > > Key: TUSCANY-1429 > URL: https://issues.apache.org/jira/browse/TUSCANY-1429 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Affects Versions: Java-SDO-M2 > Environment: WinXP > Reporter: Fuhwei Lwo > Fix For: Java-SDO-1.0 > > Attachments: 1429.patch > > > Starting from T-1317, we started to use HelperContext as the scope instead of > TypeHelper or XSDHelper. The ClassCastException problem starts to appear when > we need to cast HelperContext to HelperContextImpl to access the > XMLStreamHelperImpl which is not a spec compliant Helper because the default > helper context is not an instance of HelperContextImpl. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]