drccrd opened a new pull request, #7307: URL: https://github.com/apache/incubator-kie/pull/7307
Closes https://github.com/apache/incubator-kie/issues/7306 **Declared enums with more than 127 literals now work when the executable model is not used.** `AsmUtil.pushInt` emitted `BIPUSH` for every value above 5. It now uses `SIPUSH` and then `LDC` beyond the byte range, as javac does. Its only caller is the `<clinit>` that `DefaultEnumClassBuilder` generates. The executable model generates Java source for enums and was not affected. Notes for review: the new `EnumTest` case reads the values through `Arrays.asList(Big.values())` because the executable model rejects a method call on an array element (`values()[n].name()`), which is unrelated to this fix. Co-authored by [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
