Why not just use takeValueForKey()?
On 13/05/2009, at 7:51 AM, mschra..bjectstyle.org wrote:
> Author: mschrag
> Date: 2009-05-12 17:51:11 -0400 (Tue, 12 May 2009)
> New Revision: 5772
>
> Modified:
> trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/lib/EntityModelerSQL.jar
> trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/wojava/org/objectstyle/wolips/
> eomodeler/core/sql/EOFSQLUtils.java
> Log:
> 5.6 has a different return value, so the compiled method signature
> binding no longer matches
>
> Modified: trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/lib/EntityModelerSQL.jar
> ===================================================================
> (Binary files differ)
>
> Modified: trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/wojava/org/objectstyle/wolips/
> eomodeler/core/sql/EOFSQLUtils.java
> ===================================================================
> --- trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/wojava/org/objectstyle/wolips/
> eomodeler/core/sql/EOFSQLUtils.java 2009-05-05 20:13:34 UTC (rev 5771)
> +++ trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/wojava/org/objectstyle/wolips/
> eomodeler/core/sql/EOFSQLUtils.java 2009-05-12 21:51:11 UTC (rev 5772)
>.. -1,5 +1,6 @@
> package org.objectstyle.wolips.eomodeler.core.sql;
>
> +import java.lang.reflect.Method;
> import java.util.Enumeration;
> import java.util.HashMap;
> import java.util.HashSet;
>.. -31,7 +32,14 @@
> if (key != null && value != null) {
> key = toWOCollections(key);
> value = toWOCollections(value);
> - nsDict.setObjectForKey(value, key);
> + // nsDict.setObjectForKey(value, key);
> + try {
> + Method setObjectForKeyMethod =
> nsDict.getClass().getMethod("setObjectForKey", Object.class,
> Object.class);
> + setObjectForKeyMethod.invoke(nsDict, value, key);
> + }
> + catch (Exception e) {
> + throw new RuntimeException("Failed to call setObjectForKey.",
> e);
> + }
> }
> }
> result = nsDict;
>
-- Seeya...QQuinton Dolan - qdola..mail.com Gold Coast, QLD, Australia (GMT+10) Ph: +61 419 729 806
This archive was generated by hypermail 2.0.0 : Tue May 12 2009 - 18:19:37 EDT