You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2014/04/24 11:09:15 UTC
[jira] [Updated] (BCEL-122) ArrayIndexOutOfBoundsException thrown
from TABLESWITCH.initFromFile
[ https://issues.apache.org/jira/browse/BCEL-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated BCEL-122:
--------------------------------
Priority: Major
Environment: (was: Operating System: Windows XP
Platform: PC)
Fix Version/s: 6.0
Priority: (was: P2)
Severity: (was: normal)
> ArrayIndexOutOfBoundsException thrown from TABLESWITCH.initFromFile
> -------------------------------------------------------------------
>
> Key: BCEL-122
> URL: https://issues.apache.org/jira/browse/BCEL-122
> Project: Commons BCEL
> Issue Type: Bug
> Components: Main
> Affects Versions: 5.2
> Reporter: Timothy Alper
> Assignee: Apache Commons Developers
> Labels: PatchAvailable
> Fix For: 6.0
>
> Attachments: patch
>
>
> BCEL throws the ArrayIndexOutOfBoundsException when trying to construct a new org.apache.bcel.generic.MethodGen on a method containing the bytes compiled from the following code:
> switch (i) {
> case Integer.MAX_VALUE:
> break;
> default:
> b = true;
> }
> The method that does not handle this corner case correctly is org.apache.bcel.generic.TABLESWITCH.initFromFile(ByteSequence, boolean).
--
This message was sent by Atlassian JIRA
(v6.2#6252)