jglick / sezpoz

SezPoz: lightweight, annotation-based service loader
29 stars 11 forks source link

Fix use of SezPoz with more modern JDKs by catching NoSuchFileException as well as FileNotFoundException #13

Closed svanoort closed 6 years ago

svanoort commented 6 years ago

Basically the difference is that somewhere internally a shift was made to use NIO APIs when using JDK10.

With this patch + one to metainf-services, I can now fully compile Jenkins under JDK 10, where previously exceptions would be thrown due to annotations not being created in the META-INF/annotations build directory.

svanoort commented 6 years ago

@jglick @oleg-nenashev Please could I request a review/release to support JDK10 compatibility for compiling Jenkins?

jglick commented 6 years ago

Released as 1.13.