Skip to content

CLASS_FILTER in JarAnalyzer rejects underscores in Java class names #136

Description

@elharo

In JarAnalyzer.java:38:

private static final Pattern CLASS_FILTER = Pattern.compile("[A-Za-z0-9]*\\\\.class$");

The character class [A-Za-z0-9] excludes _ (underscore), which is a legal character in Java class names. Any class like My_Helper.class, some_test.class, or UPPER_CASE.class inside the JAR is silently ignored and never analyzed. This causes incomplete class discovery, potentially missing packages, imports, and leading to incorrect JDK revision detection.

Fix: Add _ to the character class: [A-Za-z0-9_]*\\\\.class$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions