This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89319

Summary: automated tests are affected by overridden method: getComponents() in ProfileEditorPanel.java.
Product: serverplugins Reporter: _ hlu <hlu>
Component: IdentityAssignee: Peter Liu <petertliu>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 89517    

Description _ hlu 2006-11-14 19:26:01 UTC
In ProfileEditorPanel.java there is overridden method getComponents:

    public JComponent[] getComponents() {
        return new JComponent[] {};
    }

Naturally it returns no sub components because Jemmy uses this method to
traverse the hierarchy.
Comment 1 Alexander Kouznetsov 2006-11-15 09:32:13 UTC
Since getComponents() returns empty array it is impossible for Jemmy to access the subcomponents of the ProfileEditorPanel. This blocks QE activities.
Comment 2 Peter Liu 2006-12-07 02:12:30 UTC
Instead of overriding getComponents(), the editor panels now implement
EditorDialogDescriptor.Panel interface which has a single method called
getEditableComponents().