Skip to content

ConstantPoolParser throws raw RuntimeException #145

Closed

Description

@elharo

Affected version

HEAD

Bug description

from parseConstantPoolClassReferences which is reading external data (.class files specifically) so this really should be a checked exception, but even if we leave it a runtime exception it should be a more semantically meaningful subclass per Effective Java. Maybe something like java.io.InvalidClassException?

Furthermore, it's a bug because the code in visitClass that ultimately invokes this private method does not catch RuntimeException, only more specific subclasses like IllegalArgumenException.

Activity

  1. added this to the 1.16.1 milestone on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions