unique attribute does not distinguish between values that are translated
------------------------------------------------------------------------
Key: HIVEMIND-100
URL: http://issues.apache.org/jira/browse/HIVEMIND-100
Project: HiveMind
Type: Bug
Components: framework
Versions: 1.1
Environment: J2SDK 1.4.2_04 on W2000
Reporter: Michael Frericks
Priority: Minor
Attachments: unique-attribute.patch
Given an schema defining an attribute as unique and being translated
by the translator 'qualified-id'.
Given two modules contributing an element with same local
value for the unique attribute.
This causes an ApplicationRuntimeException at
org.apache.hivemind.impl.SchemaElement#validateAttributes
{
...
throw new ApplicationRuntimeException(buffer.toString(),
element.getLocation(), null);
}
with message:
Value for attribute ''{0}'' (''{1}'') duplicates a prior instance at {2}.
Expected behaviour:
No complaint about duplicate values because the translated values are not equal.
Solution:
translate values before checking uniqueness. Patch follows.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]