Report abuse


			
            if (targetClassName == null) {
                String pkg = packageName(superClass);
                String fullName = superClass.getName();
                int ix = fullName.lastIndexOf('.');
                String cName = fullName;
                if(ix != -1) {
                    cName = fullName.substring(ix+1);
                }
                if (pkg.startsWith("java.") || pkg.startsWith("javax.")) {
                    pkg = packageName(JavaProxyClassFactory.class) + ".gen";
                }
                if(ix == -1) {
                    targetClassName = cName + "$Proxy" + nextId();
                } else {
                    targetClassName = pkg + "." + cName + "$Proxy"
                        + nextId();
                }
            }