[ http://issues.apache.org/jira/browse/DDLUTILS-6?page=all ]
Christoffer Hammarström updated DDLUTILS-6:
-------------------------------------------
Attachment: table.patch
The attached patch provides a junit test for, and fixes the problem.
> Exception in Table.getPrimaryKeyColumns(), .getNonUniqueIndices(),
> .getUniqueIndices() because PredicatedList used where
> CollectionUtils.select() was intended.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: DDLUTILS-6
> URL: http://issues.apache.org/jira/browse/DDLUTILS-6
> Project: DdlUtils
> Type: Bug
> Reporter: Christoffer Hammarström
> Assignee: Thomas Dudziak
> Attachments: table.patch
>
> java.lang.IllegalArgumentException: Cannot add Object '[EMAIL
> PROTECTED];type=null]' - Predicate rejected it
> at
> org.apache.commons.collections.collection.PredicatedCollection.validate(PredicatedCollection.java:100)
> at
> org.apache.commons.collections.collection.PredicatedCollection.<init>(PredicatedCollection.java:85)
> at
> org.apache.commons.collections.list.PredicatedList.<init>(PredicatedList.java:79)
> at
> org.apache.commons.collections.list.PredicatedList.decorate(PredicatedList.java:63)
> at org.apache.ddlutils.model.Table.getPrimaryKeyColumns(Table.java:571)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira