-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
kestrel
-
generic, sparc
-
generic, solaris_2.5
Name: dsC58869 Date: 11/29/99
The JCK-13rc1 test
api/java_beans/Introspector/descriptions.html#Introspector
failed under JDK1.3.0O. It works OK under early releases.
--- Here is a minimized test: ---
import java.beans.*;
public class IntrospectorTest {
public static void main (String[] args) {
PropertyDescriptor[] pds = null;
try {
pds = Introspector.getBeanInfo(Bargle.class).
getPropertyDescriptors();
} catch (IntrospectionException ie) {
ie.printStackTrace();
}
for (int i = 0; i < pds.length;i++) {
if (pds[i].getName().equals("thing")) {
System.out.println(pds[i].getPropertyType());
if (pds[i].getPropertyType().equals(Bargle.class)) {
System.out.println("OKAY");
} else {
System.out.println("Failed");
}
}
}
}
}
class Argle {
public void setThing(Argle a) {
}
}
class Bargle extends Argle {
public void setThing(Bargle b) {
}
}
--- Here is output: ---
%/set/java/JDK1.3.0O/solaris/bin/java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-O)
Java HotSpot(TM) Client VM (build 1.3-O, interpreted mode)
%/set/java/JDK1.3.0O/solaris/bin/java IntrospectorTest
class Argle
Failed
--- Here is .jtr file: ---
#Test Results (version 2)
#Thu Nov 25 22:26:51 PST 1999
#checksum:4a2e0cdf0eb0a6a4
#-----testdescription-----
$file=/usr/re/jck1.3/src/solaris/JCK-13o/jck-tests-build/unzip/JCK-runtime-13rc1/tests/api/java_beans/Introspector/descriptions.html
$root=/usr/re/jck1.3/src/solaris/JCK-13o/jck-tests-build/unzip/JCK-runtime-13rc1/tests
executeArgs=-TestCaseID ALL
executeClass=javasoft.sqe.tests.api.java.beans.Introspector.IntrospectorTests
id=Introspector
keywords=beans positive runtime
source=IntrospectorTests.java ../util/BadStatus.java ../util/Icon.java ../examples/Able.java ../examples/AbleBeanInfo.java ../examples/Argle.java ../examples/Baker.java ../examples/BakerBeanInfo.java ../examples/Bargle.java ../examples/Charlie.java ../examples/CharlieBeanInfo.java ../examples/Dog.java ../examples/DogBeanInfo.java ../examples/Wombat.java ../examples/WombatCustomizer.java Sample.java SampleBeanInfo.java CrashEvent.java CrashListener.java
title=Introspector getBeanInfo tests
#-----environment-----
ExecJCKTestSameJVMCmd=javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd
SlaveCommand=javasoft.sqe.javatest.lib.SlaveCommand
command.testExecute=$SlaveCommand $ExecJCKTestSameJVMCmd $testExecuteClass $testExecuteArgs
#-----testresult-----
description=file:/usr/re/jck1.3/src/solaris/JCK-13o/jck-tests-build/unzip/JCK-runtime-13rc1/tests/api/java_beans/Introspector/descriptions.html#Introspector
end=Thu Nov 25 22:26:51 PST 1999
environment=jck-runtime-singleJVM
execStatus=Failed. tests: 57; passed: 56; failed: 1; first test case failure: Introspector0013
javatestOS=Solaris 2.x (sparc)
javatestVersion=JT_2.1.2a
script=javasoft.sqe.javatest.lib.JCKScript -runtime
sections=script_messages testExecute
start=Thu Nov 25 22:26:49 PST 1999
status=Failed. tests: 57; passed: 56; failed: 1; first test case failure: Introspector0013
test=api/java_beans/Introspector/descriptions.html#Introspector
timeoutSeconds=600
work=/usr/re/jck1.3/src/solaris/JCK-13o/jck-tests-build/test/JCK-runtime-13rc1/runtime-batch-singleJVM-nojit-green/work/api/java_beans/Introspector
#section:script_messages
----------messages:(1/24)----------
Executing test class...
#section:testExecute
----------messages:(1/177)----------
command: javasoft.sqe.javatest.lib.SlaveCommand javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd javasoft.sqe.tests.api.java.beans.Introspector.IntrospectorTests -TestCaseID ALL
----------ref:(0/0)----------
----------log:(74/3238)----------
Executing command via mizu,port=47569,localport=37221
Introspector0001: Passed. OKAY
Introspector0002: Passed. OKAY
Introspector0003: Passed. OKAY
Introspector0004: Passed. OKAY
Introspector0005: Passed. OKAY
Introspector0006: Passed. OKAY
Introspector0011: Passed. OKAY
Introspector0012: Passed. OKAY
javasoft.sqe.tests.api.java.beans.util.BadStatus: Equality test failed on "propertyType is class javasoft.sqe.tests.api.java.beans.examples.Bargle"
at javasoft.sqe.tests.api.java.beans.Introspector.IntrospectorTests.assertEqual(IntrospectorTests.java:344)
at javasoft.sqe.tests.api.java.beans.Introspector.IntrospectorTests.checkPD(IntrospectorTests.java:240)
at javasoft.sqe.tests.api.java.beans.Introspector.IntrospectorTests.Introspector0013(IntrospectorTests.java:664)
at java.lang.reflect.Method.invoke(Native Method)
at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
at com.sun.jck.lib.ExecJCKTestSameJVMCmd.executeOldTest(ExecJCKTestSameJVMCmd.java:283)
at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:172)
at com.sun.javatest.agent.Agent$Task.executeCommand(Agent.java:744)
at com.sun.javatest.agent.Agent$Task.execute(Agent.java:674)
at com.sun.javatest.agent.Agent$Task.handleRequest(Agent.java:532)
at com.sun.javatest.agent.Agent.handleRequestsUntilClosed(Agent.java:320)
at com.sun.javatest.agent.Agent.access$0(Agent.java:298)
at com.sun.javatest.agent.Agent$1.run(Agent.java:208)
at java.lang.Thread.run(Thread.java:488)
Introspector0013: Failed. Test case throws exception: javasoft.sqe.tests.api.java.beans.util.BadStatus: Equality test failed on "propertyType is class javasoft.sqe.tests.api.java.beans.examples.Bargle"
Introspector0014: Passed. OKAY
Introspector0015: Passed. OKAY
Introspector0016: Passed. OKAY
Introspector0021: Passed. OKAY
Introspector0022: Passed. OKAY
Introspector0023: Passed. OKAY
Introspector0024: Passed. OKAY
Introspector0025: Passed. OKAY
Introspector0026: Passed. OKAY
Introspector0027: Passed. OKAY
Introspector0028: Passed. OKAY
Introspector0029: Passed. OKAY
Introspector0031: Passed. OKAY
Introspector0032: Passed. OKAY
Introspector0033: Passed. OKAY
Introspector0035: Passed. OKAY
Introspector0036: Passed. OKAY
Introspector0037: Passed. OKAY
Introspector0038: Passed. OKAY
Introspector0039: Passed. OKAY
Introspector0041: Passed. OKAY
Introspector0042: Passed. OKAY
Introspector0043: Passed. OKAY
Introspector0044: Passed. OKAY
Introspector0045: Passed. OKAY
Introspector0046: Passed. OKAY
Introspector0047: Passed. OKAY
Introspector0048: Passed. OKAY
Introspector0051: Passed. OKAY
Introspector0052: Passed. OKAY
Introspector0053: Passed. OKAY
Introspector0054: Passed. OKAY
Introspector0055: Passed. OKAY
Introspector0056: Passed. OKAY
Introspector0057: Passed. OKAY
Introspector0058: Passed. OKAY
Introspector0061: Passed. OKAY
Introspector0062: Passed. OKAY
Introspector0063: Passed. OKAY
Introspector0064: Passed. OKAY
Introspector0065: Passed. OKAY
Introspector0066: Passed. OKAY
Introspector0067: Passed. OKAY
Introspector0068: Passed. OKAY
Introspector0069: Passed. OKAY
Introspector0070: Passed. OKAY
Introspector0071: Passed. OKAY
Introspector0072: Passed. OKAY
result: Failed. tests: 57; passed: 56; failed: 1; first test case failure: Introspector0013
test result: Failed. tests: 57; passed: 56; failed: 1; first test case failure: Introspector0013
======================================================================
- duplicates
-
JDK-4297281 api\java_beans\Introspector\descriptions.html#Introspector JCK test failed
- Closed