[jboss-jira] [JBoss JIRA] Commented: (GPD-128) ClassCastException in XmlAdapterFactory.getConfigurationElementByXmlElementName(String)

John Ruud (JIRA) jira-events at lists.jboss.org
Thu Aug 9 17:28:02 EDT 2007


    [ http://jira.jboss.com/jira/browse/GPD-128?page=comments#action_12371677 ] 
            
John Ruud commented on GPD-128:
-------------------------------

Koen,

The following method of mine no longer compiles, as XmlAdapterRegistry.getConfigurationElementByXmlElementName(String) no longer exists. Do you happen to know off the top of your head what the replacement would be (I haven't had the time to study your latest batch of changes yet, but I suspect there's probably better ways of doing this):

private static String getSemanticElementId(String elementName, SemanticElement parent) {
		XmlAdapterRegistry registry = RegistryRegistry.getXmlAdapterRegistry(parent.getFactory().getEditorId());
		IConfigurationElement configurationElement = 
			registry.getConfigurationElementByXmlElementName(elementName);
		if (configurationElement == null) 
			return null;
		return configurationElement.getAttribute("semanticElement");
	}

> ClassCastException in XmlAdapterFactory.getConfigurationElementByXmlElementName(String)
> ---------------------------------------------------------------------------------------
>
>                 Key: GPD-128
>                 URL: http://jira.jboss.com/jira/browse/GPD-128
>             Project: JBoss jBPM GPD
>          Issue Type: Bug
>    Affects Versions: jBPM JPDL Designer 3.1.0.CR
>            Reporter: John Ruud
>         Assigned To: Koen Aers
>
> I just noticed this problem in the current HEAD (so not in the official 3.1.0.CR release, I think). In XmlAdapterFactory (1.2), a TreeSet (as opposed to a IConfigurationElement) is now returned under certain conditions, and this causes a ClassCastException to be thrown (and this is breaking some of my exsiting code)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list