Karate: FileUtils.getAllClassPathUrls doesn't return JARs on classpath for JDK9+

Created on 5 Mar 2019  路  7Comments  路  Source: intuit/karate

In JDK9+, the system classloader is replaced with a new AppClassLoader that doesn't extend from URLClassLoader.

FileUtils.getAllClassPathUrls only checks if the classloader is an instance of URLClassLoader and doesn't have another way of getting urls for JARs that are on the classpath if it isn't.

As getAllClassPathUrls is used by scanForFeatureFiles, it seems to mean that trying to reuse feature files in other jars currently can't be done when using JDK9+.

bug fixed

Most helpful comment

I'm thinking within a week. we also announce on twitter if it helps: https://twitter.com/KarateDSL

All 7 comments

Thanks for the merge @ptrthomas - was just wondering when the next release is planned so I can set a reminder to update our dependencies?

I'm thinking within a week. we also announce on twitter if it helps: https://twitter.com/KarateDSL

@tellisnz can you test once from the develop branch to make sure some of the new commits haven't broken anything important. we have regression tests and all, but just in case.

all ok @ptrthomas

hi @ptrthomas - any updates? currently waiting for the release so I can merge into my work project.. if the release is still a ways off i'll push our own build of it, but seems a shame if the release is imminent.

@tellisnz yes, got delayed. will happen within next week for sure

released 0.9.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

76creates picture 76creates  路  3Comments

ampc picture ampc  路  5Comments

hascode picture hascode  路  3Comments

IsaoTakahashi picture IsaoTakahashi  路  3Comments

ptrthomas picture ptrthomas  路  5Comments