harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4647) JFCMark.LoadImageDemo doesn't work
Date Wed, 22 Aug 2007 13:46:30 GMT

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

Andrey Pavlenko commented on HARMONY-4647:
------------------------------------------

This demo does not work on Hrmony because it depends on RI's internal classes. To run this
demo on Harmony replace the method clearImagesCache() with the following:

    private static void clearImagesCache() {
        try {
            if(clear == null) {
            	Class c = Toolkit.getDefaultToolkit().getClass();
            	Field cacheField = c.getDeclaredField("imageCache");
            	cacheField.setAccessible(true);
                softCache = cacheField.get(null);
                clear = softCache.getClass().getMethod("clear", null);
            }

            clear.invoke(softCache, null);
        } catch(Exception e) {
            System.out.println("unexpected: " + e);
            System.exit(-1);
        }
    }

With the above patch this demo runs on Harmony, but it does not produce any results - OOME
occurs. 

> JFCMark.LoadImageDemo doesn't work 
> -----------------------------------
>
>                 Key: HARMONY-4647
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4647
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports
>         Environment: Win IA32
>            Reporter: Vladimir Strigun
>         Attachments: LoadImageDemo.JPG
>
>
> The bug is reproduced on DRLVM release build (rev 566855). 
> Steps to reproduce:
> 1. download JFCMark bench (http://www.excelsior-usa.com/jfcmark.html)
> 2. configure execution scripts (setVM.bat and ./ImageDemo/runHS_load.bat)
> 3. execute runHS_load.bat
> Attached picture shows that images doesn't loaded.

-- 
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