Aias00 opened a new issue, #6728:
URL: https://github.com/apache/shenyu/issues/6728
- Severity: Medium
- Location:
`shenyu-web/src/main/java/org/apache/shenyu/web/loader/PluginJarParser.java:66`
(`!entryName.contains("$")`);
`shenyu-web/src/main/java/org/apache/shenyu/web/loader/ShenyuPluginClassLoader.java:118-139`
(`findClass`)
-
Description:
`parseJar` excludes any entry containing `$` from `clazzMap` and stores it
in `resourceMap`. `findClass` only consults `classCache` and `clazzMap`; it
never reads `resourceMap`. So `Outer$Inner` is unfindable:
`ability("Outer$Inner")` returns true → delegates to
`getParent().loadClass(...)` → app classloader cannot see plugin classes →
`ClassNotFoundException`.
-
Impact:
Any uploaded/ext plugin referencing a nested/inner class (Builder pattern,
nested enums, synthetic accessors) throws `NoClassDefFoundError` on first use
at runtime; the plugin effectively can't use inner classes.
-
Suggested fix:
Put `$`-bearing `.class` entries into `clazzMap` too, or have `findClass`
fall back to `resourceMap` for names containing `$`.
-
Confidence: Medium
- Related existing: none
---
_Identified during the 2026-08-02 deep re-scan; full list in
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._
--
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]