Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323056

Summary: [Accessibility] get_hyperlink returns incorrect address for accessible
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 3.6Keywords: accessibility
Target Milestone: 3.6.1Flags: Silenio_Quarti: review+
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test with Snippet217a
none
Patch none

Description Carolyn MacLeod CLA 2010-08-18 11:49:36 EDT
Created attachment 176912 [details]
Test with Snippet217a

Eclipse 3.6 on Windows.
Run the attached test snippet which shows a StyledText with 2 embedded controls.
Run AccProbe, and hover over the text in the StyledText.
Expand IAccessibleHypertext, and double-click on "hyperlink" to bring up the "getHyperlink" dialog.
Enter 0 or 1 for the hyperlink index, and click "Invoke Method".
NULL is returned. The expected return value is an accessible.
Comment 1 Carolyn MacLeod CLA 2010-08-18 11:55:42 EDT
Created attachment 176913 [details]
Patch

The following one-line patch correctly returns the address for the accessible. Previously, the address was being returned in a VARIANT, but that is not how this method works. The address should be returned directly, in the specified address pointer.
Comment 2 Carolyn MacLeod CLA 2010-08-18 11:57:11 EDT
SSQ, please review for 3.6.1. I will also release to 3.7 stream.
Comment 3 Carolyn MacLeod CLA 2010-08-18 12:02:52 EDT
Fixed in 3.6.1 > 20100818.
Comment 4 Carolyn MacLeod CLA 2010-08-18 12:14:20 EDT
Fixed in 3.7 > 20100818
Comment 5 Carolyn MacLeod CLA 2011-01-10 12:42:59 EST
Changing from "Closed->Fixed" to "Resolved->Fixed".