Skip to content

LDEV-6240 skip findLoadedClass in EnvClassLoader, clear callerCache on RPC flush#2776

Open
zspitzer wants to merge 1 commit intolucee:6.2from
zspitzer:LDEV-6240-v6
Open

LDEV-6240 skip findLoadedClass in EnvClassLoader, clear callerCache on RPC flush#2776
zspitzer wants to merge 1 commit intolucee:6.2from
zspitzer:LDEV-6240-v6

Conversation

@zspitzer
Copy link
Copy Markdown
Member

@zspitzer zspitzer commented Apr 8, 2026

Summary

Backport of #2775 to 6.2.

  • Remove findLoadedClass() from EnvClassLoader.loadClass() — it returns classes from the JVM's internal cache which cannot be cleared after a PhysicalClassLoader flush
  • Add clearCallerCache() to EnvClassLoader and call it from PhysicalClassLoader.flush() for RPC classloaders
  • After flush, stale classes from the old classloader caused isAssignableFrom failures in ServiceLoader and other JDK code

https://luceeserver.atlassian.net/browse/LDEV-6240

Test plan

  • test/tickets/LDEV6240.cfc — 5 tests all passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant