[ https://issues.apache.org/jira/browse/CXF-7291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934922#comment-15934922 ]
ASF GitHub Bot commented on CXF-7291: ------------------------------------- Github user reta commented on a diff in the pull request: https://github.com/apache/cxf/pull/247#discussion_r107218893 --- Diff: core/src/main/java/org/apache/cxf/common/util/PackageUtils.java --- @@ -56,7 +57,9 @@ public static String getSharedPackageName(List<Class<?>> classes) { List<List<String>> lParts = new ArrayList<List<String>>(classes.size()); List<String> currentParts = new ArrayList<>(); for (Class<?> cls : classes) { - lParts.add(StringUtils.getParts(getPackageName(cls), "\\.")); + if (!Proxy.isProxyClass(cls)) { --- End diff -- In this case, should we get the real class using `getProxyClass` and extract the package from it? > sharedPackageName for Swagger description should ignore proxy classes > --------------------------------------------------------------------- > > Key: CXF-7291 > URL: https://issues.apache.org/jira/browse/CXF-7291 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.10 > Reporter: Dennis Kieselhorst > Fix For: 3.2.0 > > > A com.sun.proxy class causes empty Swagger description because the > resourcePackage is empty in this case. > I'll create a PR with a fix. -- This message was sent by Atlassian JIRA (v6.3.15#6346)