Netflix / governator

Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.
Apache License 2.0
825 stars 180 forks source link

AppClassLoader will be autoclosed. #382

Open blling opened 6 years ago

blling commented 6 years ago

If inject a sun.misc.Launcher$AppClassLoader(it implements Autoclosable) in governator, it will be closed by the predestroy strategy, and cause error java.lang.NoClassDefFoundError when call the next predestroy method which used the classes load by the sun.misc.Launcher$AppClassLoader