Browse Source

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
master
Magesh Umasankar 23 years ago
parent
commit
86003c2f15
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      WHATSNEW

+ 10
- 0
WHATSNEW View File

@@ -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:
-----------


Loading…
Cancel
Save