[JIRA] Closed: (CAY-920) ClassCastException when processing delete rules for Map relationships

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Wed Nov 14 2007 - 15:17:43 EST

  • Next message: Andrus Adamchik: "Re: [JIRA] Created: (CAY-904) Switch cayenne to Java 5: merge cayenne-jdk1.4-unpublished to cayenne-jdk1.5-unpublished"

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

    Andrus Adamchik closed CAY-920.
    -------------------------------

        Resolution: Fixed

    > ClassCastException when processing delete rules for Map relationships
    > ---------------------------------------------------------------------
    >
    > Key: CAY-920
    > URL: https://issues.apache.org/cayenne/browse/CAY-920
    > Project: Cayenne
    > Issue Type: Bug
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Reporter: Andrus Adamchik
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > This only affects 3.0M2. When processing delete rules of an object that has to-many relationship that is a Map, the following exception occurs:
    > java.lang.ClassCastException: org.apache.cayenne.util.PersistentObjectMap
    > at org.apache.cayenne.access.DataContextDeleteAction.processDeleteRules(DataContextDeleteAction.java:148)
    > at org.apache.cayenne.access.DataContextDeleteAction.deletePersistent(DataContextDeleteAction.java:108)
    > at org.apache.cayenne.access.DataContextDeleteAction.performDelete(DataContextDeleteAction.java:93)
    > at org.apache.cayenne.access.DataContext.deleteObject(DataContext.java:982)

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Wed Nov 14 2007 - 15:18:10 EST