spring-hibernate-query-utils icon indicating copy to clipboard operation
spring-hibernate-query-utils copied to clipboard

Broken detection when using Java 16+

Open mideuger opened this issue 1 year ago • 0 comments

Java 16+ broke the N+1 query detection, it seems that the proxy's package has changed.

I've tested locally and setting the value of PROXY_METHOD_PREFIX to jdk.proxy2 instead of com.sun.proxy in those versions does the trick.

I would happily submit a PR that checks the Java runtime version and set the PROXY_METHOD_PREFIX accordingly if that's an acceptable solution.

mideuger avatar Aug 10 '23 16:08 mideuger