- changed title to Specific String-in-Switch case labels cause ArrayIndexOutOfBoundsException
- edited description
Specific String-in-Switch case labels cause ArrayIndexOutOfBoundsException
Issue #148
resolved
ExtendJ 8.0.1-77-g270d5ec
A particular set of case labels in a String-in-Switch statement causes an ArrayIndexOutOfBoundsException during code generation. This is a test case triggering the bug:
class Test { void f(String s) { switch (s) { case "#metadataBlock": break; case "#datasetField": break; case "#controlledVocabulary": break; } } }
Comments (3)
-
reporter -
reporter This is caused by the internal
tableSwitchSize
variable overflowing. Fix is to change it to along
. -
reporter - changed status to resolved
- Log in to comment