/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4619536
* @summary Tests resolving the ambiguities in the resolution of IndexedPropertyDescriptors
* @author Mark Davidson
*/
public class Test4619536 {
}
if (pd instanceof IndexedPropertyDescriptor) {
}
}
if (pd instanceof IndexedPropertyDescriptor) {
}
if (pd instanceof IndexedPropertyDescriptor) {
}
}
}
}
if (!isValidType(ipd)) {
}
}
if (!isValidType(ipd)) {
}
}
}
if (!isValidType(ipd)) {
}
}
}
return false;
}
}
return false;
}
}
}
}
// Test case from 4619536
public static class A {
// prop foo on A should be indexed of type String
return null;
}
}
public static class B extends A {
// prop foo on should be non-indexed of type Date
return null;
}
}
// Test case from 4812428 (this works in 1.5.0)
public static class Parent {
}
return null;
}
}
return null;
}
}
// This class has a complete set of pd
public static class Classic {
return null;
}
}
}
// This class has a complete set of ipd
public static class Index {
return null;
}
}
}
// This class adds a proper getter and setter
return null;
}
}
}
// This class adds a classic getter
return null;
}
}
// This class has an alternate getter and should be merged
return null;
}
}
// This class adds a classic setter
}
}
// This class has an alternate setter and should be merged
}
}
}