harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2457) javax.accessibility.AccessibleRelationSet.relations field is different on Harmony and RI
Date Tue, 05 Dec 2006 12:26:21 GMT
javax.accessibility.AccessibleRelationSet.relations field is different on Harmony and RI

                 Key: HARMONY-2457
                 URL: http://issues.apache.org/jira/browse/HARMONY-2457
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Anton Ivanov
            Priority: Minor

When javax.accessibility.AccessibleRelationSet object is created via
AccessibleRelationSet() constructor protected field == empty Vector array 
while relations == null on RI.
The same problem arises for AccessibleStateSet.states field.

Test to reproduce the problem:

import junit.framework.TestCase;
import javax.accessibility.*;
import java.util.*;

public class ConstructorsTest extends TestCase {     

    static class testAccessibleRelationSet extends AccessibleRelationSet   {
        Vector relations;    
        testAccessibleRelationSet()  {
            relations= super.relations; 

    static class testAccessibleStateSet extends AccessibleStateSet  {
        Vector states;    
        testAccessibleStateSet()  {
            states= super.states; 
    public void test1 () {    
        testAccessibleRelationSet obj= new testAccessibleRelationSet();
    public void test2 () {  
        testAccessibleStateSet obj= new testAccessibleStateSet();          

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message