elharo opened a new issue, #136:
URL: https://github.com/apache/maven-shared-jar/issues/136
In `JarAnalyzer.java:38`:
```java
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$`
--
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]