You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2008/04/21 21:11:21 UTC
[jira] Assigned: (IVY-805) onMissingDescriptor doesn't work due to
== comparison
[ https://issues.apache.org/jira/browse/IVY-805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene reassigned IVY-805:
---------------------------------
Assignee: Maarten Coene
> onMissingDescriptor doesn't work due to == comparison
> -----------------------------------------------------
>
> Key: IVY-805
> URL: https://issues.apache.org/jira/browse/IVY-805
> Project: Ivy
> Issue Type: Bug
> Components: Ant
> Affects Versions: 2.0-RC1
> Reporter: Ben Hale
> Assignee: Maarten Coene
> Attachments: onMissingDescriptor.patch
>
>
> In the IvyBuildList file, you compare the value passed for onMissingDescriptor to a set of constants using the '==' operator. In Java, this will always return false unless you have the exact same instance (which is unlikely in this case :)) The code should use the .equals() method which will return true when strings are identical, even when they are not the same instance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.