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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
Impossible ClassCast
--------------------

                 Key: OFBIZ-4421
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4421
             Project: OFBiz
          Issue Type: Bug
          Components: product
            Reporter: Dimitri Unruh
         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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)

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

Dimitri Unruh updated OFBIZ-4421:
---------------------------------

    Attachment: OFBIZ-4421.patch

> Impossible ClassCast
> --------------------
>
>                 Key: OFBIZ-4421
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4421
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>            Reporter: Dimitri Unruh
>         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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ 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

       
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Sascha Rodekamp closed OFBIZ-4421.
----------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
                   Release Branch 11.04
                   Release Branch 10.04

Thanks Dimitri,
your Patch is in
trunk @Rev1173596
10.04 @Rev1173600
11.04 @Rev1173601

> 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
>             Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk
>
>         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