My Oracle Support Banner

JDK Dynamic Proxy Package Name Changes to com.sun.proxy.$ProxyXyz since JDK 6u41 (Doc ID 2408871.1)

Last updated on AUGUST 21, 2023

Applies to:

Java SE JDK and JRE - Version 6 and later
Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Symptoms

After Jdk is upgrade to Oracle JDK 6 Update 191 (See: Doc ID 1439822.1). Dynamic proxy package name changes from blank to com.sun.proxy. Which eventually makes customer code which is based on org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass fails.

$ export JAVA_HOME=/JAVA_HOME; export PATH=$JAVA_HOME/bin:$PATH; java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

[oracle@wl01cn07 ~]$ javac proxy/test/JdkProxyDemo.java; java -cp . proxy.test.JdkProxyDemo
class $Proxy0

@1.6.0_39 = class sun.proxy.$Proxy0
@1.6.0_41 = class com.sun.proxy.$Proxy0

Changes

Upgrade from JDK 6u20.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.