harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cornwall (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5289) [pack200][classlib] Added code to support tableswitch/lookupswitch
Date Tue, 11 Dec 2007 16:41:43 GMT

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

Andrew Cornwall commented on HARMONY-5289:
------------------------------------------

Sian, I'm not sure how to retrieve the case_values using your code. I tried the obvious:

        int case_values[] = new int[case_count];
        System.out.println("Using case_count=" + case_count);
        for(int index=0; index < case_count; index++) {
            System.out.println("Using case_values[" + index + "]=" + case_values[index]);
            case_values[index] = operandManager.nextCaseValues();
        }

but with that I get two case_values of 0 with a 3-case tableswitch.


> [pack200][classlib] Added code to support tableswitch/lookupswitch
> ------------------------------------------------------------------
>
>                 Key: HARMONY-5289
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5289
>             Project: Harmony
>          Issue Type: New Feature
>          Components: Classlib
>         Environment: All Pack200
>            Reporter: Andrew Cornwall
>            Priority: Minor
>         Attachments: BcBands.java.patch, BcBandsTest.java.patch, main.patch, test.patch
>
>
> I have added some code to support the lookupswitch and tableswitch bytecodes. This code
is currently turned off (there's a boolean in SwitchForm) but can be enabled as soon as BcBands
is calculating case_values correctly.

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