harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2547) [classlib][awt] PointerPointer's methods set/get, set/getAddress don't use pointer size.
Date Tue, 30 Jan 2007 07:35:33 GMT

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

Stepan Mishura commented on HARMONY-2547:
-----------------------------------------

Hi Alexei and Oleg,

The test org.apache.harmony.awt.tests.nativebridge.PointerPointerTest fails on Linux x86_64
with:

1) test_set
Wrong number of elements to copy: 16
java.lang.IndexOutOfBoundsException: Wrong number of elements to copy: 16 at org.apache.harmony.awt.nativebridge.ByteBase.checkArraysBounds(ByteBase.java:1123)
at org.apache.harmony.awt.nativebridge.ByteBase.get(ByteBase.java:172) at org.apache.harmony.awt.tests.nativebridge.PointerPointerTest.test_set(PointerPointerTest.java:55)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)

2)test_setAddress
Wrong number of elements to copy: 16
java.lang.IndexOutOfBoundsException: Wrong number of elements to copy: 16 at org.apache.harmony.awt.nativebridge.ByteBase.checkArraysBounds(ByteBase.java:1123)
at org.apache.harmony.awt.nativebridge.ByteBase.get(ByteBase.java:172) at org.apache.harmony.awt.tests.nativebridge.PointerPointerTest.test_setAddress(PointerPointerTest.java:66)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)

I've added the test to the exclude list. Could you investigate?

Thanks,
Stepan.

> [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
>         Assigned To: Alexei Zakharov
>         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.


Mime
View raw message