From 86003c2f15e9fea40e2275f4e3c820cbd3a79563 Mon Sep 17 00:00:00 2001 From: Magesh Umasankar Date: Fri, 28 Dec 2001 21:25:34 +0000 Subject: [PATCH] Selection of PreferredAttributes over 'normal' attributes may break some tasks that may have overridden setFoo(NormalAttribute). git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270389 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WHATSNEW b/WHATSNEW index 8f100558a..b5590e596 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -28,6 +28,16 @@ Changes that could break older environments: a check is made to see if there is another overloaded method that takes in some other type of argument. If there is one such method, then the method that takes in String as an argument is not selected by the Introspector. + + In addition, if there is an overloaded setter method that takes in a + PreferredAttribute, it gains preference over other setters that do not + take in a PreferredAttribute as argument. For example, if the methods + setFoo(File) and setFoo(SrcFile) is present, setFoo(SrcFile) will be the + one which gets invoked because SrcFile is a PreferredAttribute. If there + are methods like setFoo(SrcFile) as well as setFoo(DestDir), where + SrcFile and DestDir are PreferredAttributes, the setFoo method that + gets selected first by the Java runtime will be the one that gets + invoked. Fixed bugs: -----------