Skip to content

Commit

Permalink
Merge pull request #6597 from geoand/camel-quarkus
Browse files Browse the repository at this point in the history
Add Netty substitution that addresses Camel Quarkus issue
  • Loading branch information
geoand authored Jan 17, 2020
2 parents f8128f4 + be3b962 commit 62c47bb
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,18 @@ private static boolean isSkippable(final Class<?> handlerType, final String meth
}
}

@TargetClass(className = "io.netty.util.internal.NativeLibraryLoader")
final class Target_io_netty_util_internal_NativeLibraryLoader {

// This method can trick GraalVM into thinking that Classloader#defineClass is getting called
@Substitute
static Class<?> tryToLoadClass(final ClassLoader loader, final Class<?> helper)
throws ClassNotFoundException {
return Class.forName(helper.getName(), false, loader);
}

}

class NettySubstitutions {

}

0 comments on commit 62c47bb

Please sign in to comment.