cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deki <>
Subject [GitHub] cxf pull request #247: CXF-7291: sharedPackageName for Swagger desc should i...
Date Wed, 22 Mar 2017 07:18:19 GMT
Github user deki commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/cxf/common/util/ ---
    @@ -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 --
    Good idea, I first thought to use InvocationHandler stuff for this but in the method only
the class itself is available. And afaik it's not possible to get the real class as there
might be multiple interfaces...

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message