-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 1.2.0
-
Component/s: client-libs
-
1.2beta4
-
sparc
-
solaris_2.5
-
Verified
Name: sdC67446 Date: 04/28/98
method boolean java.beans.beancontext.BeanContextChildSupport.isDelegated()
returns inverted boolean value.
Required for JCK test development.
Here what doc says:
--------------------------------------------------
isDelegated
public boolean isDelegated()
Returns:
if this class is a delegate of another
Here is the test demostrating the bug:
--------------------------------------------------
import java.beans.beancontext.*;
public class Test {
public static void main(String[] args) {
BeanContextChildSupport bccs0 = new BeanContextChildSupport();
// making delegated class instance
BeanContextChildSupport bccs = new BeanContextChildSupport(bccs0);
// checking out. "true" expecting.
System.out.println("isDelegated() == "+bccs.isDelegated());
// making non delegated class instance
bccs = new BeanContextChildSupport();
// checking out. "false" expecting.
System.out.println("isDelegated() == "+bccs.isDelegated());
}
}
Here is test's output:
--------------------------------------------------
isDelegated() == false
isDelegated() == true
--------------------------------------------------
======================================================================