You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 01:11:02 UTC
[I] [BUG] Plugin inner classes ($ entries) cannot be resolved by the plugin classloader [shenyu]
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] Plugin inner classes ($ entries) cannot be resolved by the plugin classloader [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6728: [BUG] Plugin inner classes ($ entries) cannot be resolved by the plugin classloader
URL: https://github.com/apache/shenyu/issues/6728
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] Plugin inner classes ($ entries) cannot be resolved by the plugin classloader [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6728:
URL: https://github.com/apache/shenyu/issues/6728#issuecomment-5161308662
👋 Hello @Aias00
A new issue has been opened by @Aias00:
- **Title**: [BUG] Plugin inner classes ($ entries) cannot be resolved by the plugin classloader
- **Link**: https://github.com/apache/shenyu/issues/6728
Please review when you have time. Thank you! 🙏
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org