openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1800729 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
Date Tue, 04 Jul 2017 06:49:07 GMT
Author: rmannibucau
Date: Tue Jul  4 06:49:07 2017
New Revision: 1800729

URL: http://svn.apache.org/viewvc?rev=1800729&view=rev
Log:
OWB-1196 ensure we can proxy signed classes

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java?rev=1800729&r1=1800728&r2=1800729&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java
Tue Jul  4 06:49:07 2017
@@ -93,6 +93,12 @@ public class SubclassProxyFactory extend
 
     private <T> String getSubClassName(Class<T> classToProxy)
     {
+        if (classToProxy.getSigners() != null)
+        {
+            // avoid java.lang.SecurityException: class's signer information
+            // does not match signer information of other classes in the same package
+            return "org.apache.webbeans.custom.signed." + classToProxy.getName();
+        }
         return fixPreservedPackages(classToProxy.getName() + "$$OwbSubClass");
     }
 



Mime
View raw message