[
https://issues.jboss.org/browse/FORGE-959?page=com.atlassian.jira.plugin....
]
George Gastaldi updated FORGE-959:
----------------------------------
Steps to Reproduce:
- Open NewFieldWizard, go to line 239
- Change
{code}
context.setAttribute(RelationshipType.class,relationshipType.getValue().name());
{code}
to
{code}
context.setAttribute(RelationshipType.class,relationshipType.getValue());
context.getAttribute(RelationshipType.class);
{code}
ClassCastException with CLAC when the attribute added to
UIContext.setAttribute is an Enum
------------------------------------------------------------------------------------------
Key: FORGE-959
URL:
https://issues.jboss.org/browse/FORGE-959
Project: Forge
Issue Type: Bug
Components: Container
Affects Versions: 2.0.0.Alpha5
Reporter: George Gastaldi
Assignee: Lincoln Baxter III
Fix For: 2.x Future
This was spotted in the NewFieldWizard when transitioning to
NewFieldRelationshipWizardStep:
{code}
RelationshipType enumValue = ...
UIContext.setAttribute("value", enumValue);
enumValue = (RelationshipType) UIContext.getAttribute("value")// CCE
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira