spring-projects / spring-loaded

Java agent that enables class reloading in a running JVM
Apache License 2.0
2.72k stars 515 forks source link

Patch type registry synchronized and Fix clearing of ReflectionUtils #225

Closed davydotcom closed 4 years ago

davydotcom commented 4 years ago

Fixes concurrency issue where a classload in a concurrent environment with a large number of classes can cause a loss of a TypeRegistry entry. Been running this branch for 3 months on a 380+ Class project with no issues since change.

This also makes spring-loaded work with Java 8 and grails 4.0.x The ReflectionUtils class needed clearing on change to clear cached Field references.