<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello Raphael,</div><div>It may be hard to reproduce,</div><div>can you do a javap -c on the class/method so it will be easier to see if the generated bytecode is wrong of if it's a VM issue.</div><div><br data-mce-bogus="1"></div><div>regards,</div><div>RĂ©mi</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Rafael Winterhalter" <rafael.wth@gmail.com><br><b>To: </b>"compiler-dev" <compiler-dev@openjdk.org><br><b>Sent: </b>Friday, March 21, 2025 10:20:48 AM<br><b>Subject: </b>Bug in JDK25 with switch statements<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div>Hello,</div><div>my project Byte Buddy fails to build with recent JDK 25s. I am not sure if this is a known bug, but I wanted to mention it: <a href="https://github.com/raphw/byte-buddy/actions/runs/13975513319/job/39131008617" target="_blank">https://github.com/raphw/byte-buddy/actions/runs/13975513319/job/39131008617</a><br data-mce-bogus="1"></div><br><div>The reason for the build failure is that this switch statement ends up in the default branch: <a href="https://github.com/raphw/byte-buddy/blob/master/byte-buddy-dep/src/main/java/net/bytebuddy/asm/Advice.java#L3239" target="_blank">https://github.com/raphw/byte-buddy/blob/master/byte-buddy-dep/src/main/java/net/bytebuddy/asm/Advice.java#L3239</a><br data-mce-bogus="1"></div><br><div>This is happening for the char 'p' which is the last legal branch of the switch. This does not yield an error on JDKs 5 to 24, so this must be introduced recently.</div><br><div>Thanks, Rafael</div></div><br></blockquote></div></div></body></html>