<div dir="ltr">Hi ClassFile API subscribers,<div>Looking at the recent developments in ClassFile API, there are quite a few bugfixes around AIOOBE from Label generation or not anticipating IAE from Labels.</div><div><br></div><div>Currently, we aim to always throw IAE instead of IOOBE, but in this way, malformed bcis cannot be retrieved programmatically from APIs returning Label.</div><div><br></div><div>I am thinking of 2 ways to access the bad bci for a label:</div><div>1. throw a subtype of IAE that returns the bad bci index (closer to current behavior)</div><div>2. return a dummy label (maybe create a new boundlabel type) that can produce bad bci when used in `CodeAttribute.labelToBci`</div><div><br></div><div>Do you think accessing the bad bci programmatically is meaningful, and which approach do you think is better to access the bad bci?</div><div><br></div></div>