Open ilx opened 9 years ago
invocation:
-noverify
-javaagent:/home/ilx/.m2/m2repo/org/springframework/springloaded/1.2.3.BUILD-SNAPSHOT/springloaded-1.2.3.BUILD-SNAPSHOT.jar
-Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin,io.github.jhipster.loaded.JHipsterPluginManagerReloadPlugin;exclusions=com.zaxxer.hikari..*,org.hibernate..*,org.springframework.orm.jpa..*
-DhotReload.enabled=true
...
Seems that exclusion is important factor here. If type is not reloaded idyrun will be invoked and it will fail.
I can imagine exclusions are not working with invokedynamic, there are no tests for that scenario and whether exclusions were occurring was not considered in the quick prototype effort that got reloading of invokedynamic going.
Hi, I don't know if the title is correct, so I will try to describe issue.
I've added HikarcCP packages to exclusions but I was surprised when I got:
If I take a look at the relevant code it's:
executor:
HikariCP:
so, it seems that closeConnection is using lambda expression from excluded package.
Btw. in order to capture nameAndDescriptor I had to modify TypeRegistry public static method:
does this mean that exclusion is not working properly for lambdas or is this something completely different?