[
https://issues.apache.org/jira/browse/JENA-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551962#comment-13551962
]
Andy Seaborne commented on JENA-372:
------------------------------------
Patch applied successfully.
> UnsupportedPolymorphismException has implicit dependency on EnhNode
> -------------------------------------------------------------------
>
> Key: JENA-372
> URL: https://issues.apache.org/jira/browse/JENA-372
> Project: Apache Jena
> Issue Type: Sub-task
> Components: Jena
> Affects Versions: Jena 2.7.4, Jena 2.10.0
> Reporter: Claude Warren
> Assignee: Andy Seaborne
> Attachments: jena-372.patch
>
>
> Currently UnsupportedPolymorphismException requires a EnhNode in the
> constructor and for getBadGraph() which is only used in a test case.
> UnsupportedPolymorphismException is specified in the Model interface so
> should not be dependent upon a specific implementation of Model.
> Suggested implementation:
> 1. change contstructor to pass the EnhNode as an Object so that other
> implementations may pass their model implementation,
> 2. add a flag to indicate that a graph was present or not in the model
> implementation -- this will allow the message to be properly constructed.
> 3. Remove getBadGraph() and let the test case that needs it use
> getBadClass().getGraph() to get the graph from the model.
--
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