You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/01/25 15:43:49 UTC

[jira] Updated: (HARMONY-2547) [classlib][awt] PointerPointer's methods set/get, set/getAddress don't use pointer size.

     [ https://issues.apache.org/jira/browse/HARMONY-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2547:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][awt] PointerPointer's methods set/get, set/getAddress don't use pointer size.
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2547
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2547
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Oleg Khaschansky
>         Attachments: harmony-2547-test.patch, harmony-2547.patch
>
>
> The following methods of org.apache.harmony.awt.nativebridge.PointerPointer
> don't multiply index to elemnt size PP_SIZE_FACTOR: set(int, VoidPointer),
> get(int), setAddress(int, long), getAddress(int).
> Here's a small testcase:
> import org.apache.harmony.awt.nativebridge.NativeBridge;
> import org.apache.harmony.awt.nativebridge.PointerPointer;
> public class PointerPointerTest {
>     public static void main(String[] args) {
>         PointerPointer p = NativeBridge.getInstance().createPointerPointer(2, false);
>         p.setAddress(0, 0xFFFFFFFF);
>         System.out.println("*(p+1) = " + Long.toHexString(p.getAddress(1)) + " should be 0");
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.