[ http://issues.apache.org/jira/browse/IBATIS-139?page=all ]
Clinton Begin closed IBATIS-139:
--------------------------------
Fix Version: 2.1.5
Resolution: Fixed
Assign To: Clinton Begin
Fixed as described. Thanks Geoff and Sven!
> Discriminator being applied to incorrect resultmaps
> ---------------------------------------------------
>
> Key: IBATIS-139
> URL: http://issues.apache.org/jira/browse/IBATIS-139
> Project: iBatis for Java
> Type: Bug
> Components: SQL Maps
> Versions: 2.1.0
> Environment: MS Windows XP Professional, JDK 1.3
> Reporter: Geoff Chiang
> Assignee: Clinton Begin
> Fix For: 2.1.5
> Attachments: SqlMapParser.diff, SqlMapParser.java
>
> The new discriminator/submap functionality is breaking resultmaps that are
> processed after the one that the discriminator defined in. Once a
> discriminator tag is encountered during the initial parsing of the
> resultmaps, a Discriminator object is created and held in the 'discriminator'
> attribute of the parser's 'vars' object (vars is an instance of
> BaseParse.Variables). This Discriminator object is then applied to the
> enclosing resultmap at SqlMapParser:288. However, the discriminator is never
> reset to null, resulting in it also being applied to all resultmaps processed
> after that initial definition.
> See the mailing list thread at
> http://www.mail-archive.com/[email protected]/msg02500.html
> for more details of the problem.
--
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