diff --git a/src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java b/src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java index f25c801..d22a367 100644 --- a/src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java +++ b/src/main/java/io/quarkus/gizmo/BytecodeCreatorImpl.java @@ -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);