You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Cornwall (JIRA)" <ji...@apache.org> on 2007/12/11 17:41:43 UTC
[jira] Commented: (HARMONY-5289) [pack200][classlib] Added code to
support tableswitch/lookupswitch
[ 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.