timboudreau opened a new pull request, #125: URL: https://github.com/apache/commons-bcel/pull/125
Attempting to create a visitor over a `module-info.class` created on JDK 17.0.2, and visit Module and ModuleRequires instances, calling `toString(ConstantPool)` on them results in an `IllegalArgumentException` 100% of the time due to `String ConstantPool.getConstantString(int index, byte tag)` not anticipating a tag value of `0x01`. This patch simply adds a test if we already have a `ConstantUtf8` and if so, uses it as-is, which results in the correct value being returned. -- 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]
