Skip to content

Commit

Permalink
Don't avoid using TCCL for classes under the java. package prefix
Browse files Browse the repository at this point in the history
Fixes: quarkusio/quarkus#28431
(cherry picked from commit 64f0cff)
  • Loading branch information
zakkak authored and gsmet committed Oct 12, 2022
1 parent 6a1c83b commit 4d48da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private ResultHandle loadClass(final String className, final boolean useTccl) {
Objects.requireNonNull(className);
final Class<?> primitiveType = matchPossiblyPrimitive(className);
if (primitiveType == null) {
if (useTccl && !className.startsWith("java.")) {
if (useTccl) {
if (cachedTccl == null) {
ResultHandle currentThread = invokeStaticMethod(THREAD_CURRENT_THREAD);
cachedTccl = invokeVirtualMethod(THREAD_GET_TCCL, currentThread);
Expand Down

0 comments on commit 4d48da9

Please sign in to comment.