You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sascha Rodekamp (JIRA)" <ji...@apache.org> on 2011/09/15 17:48:10 UTC

[jira] [Assigned] (OFBIZ-4421) Impossible ClassCast

     [ https://issues.apache.org/jira/browse/OFBIZ-4421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sascha Rodekamp reassigned OFBIZ-4421:
--------------------------------------

    Assignee: Sascha Rodekamp

> Impossible ClassCast
> --------------------
>
>                 Key: OFBIZ-4421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4421
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>            Reporter: Dimitri Unruh
>            Assignee: Sascha Rodekamp
>         Attachments: OFBIZ-4421.patch
>
>
> A cast in ProductSearch.java is impossible:
> {code}
> public boolean equals(Object obj) {
>     ProductSearchConstraint psc = (ProductSearchConstraint) obj;
>     if (psc instanceof FeatureConstraint) {
>         FeatureSetConstraint that = (FeatureSetConstraint) psc;
>         ...  
> {code}
> The FeatureSetConstraint cast will always throw a ClassCastException. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira