You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pa...@apache.org on 2013/02/03 23:50:59 UTC
svn commit: r1441981 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
Author: pauls
Date: Sun Feb 3 22:50:59 2013
New Revision: 1441981
URL: http://svn.apache.org/viewvc?rev=1441981&view=rev
Log:
Call registerAsParallelCapable via reflection to not add a dependency on java7 (FELIX-3553).
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java?rev=1441981&r1=1441980&r2=1441981&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java Sun Feb 3 22:50:59 2013
@@ -1811,7 +1811,9 @@ public class BundleWiringImpl implements
{
try
{
- ClassLoader.registerAsParallelCapable();
+ BundleRevisionImpl.getSecureAction()
+ .getMethod(ClassLoader.class, "registerAsParallelCapable", null)
+ .invoke(null);
}
catch (Throwable th)
{
@@ -1851,7 +1853,9 @@ public class BundleWiringImpl implements
{
try
{
- ClassLoader.registerAsParallelCapable();
+ BundleRevisionImpl.getSecureAction()
+ .getMethod(ClassLoader.class, "registerAsParallelCapable", null)
+ .invoke(null);
}
catch (Throwable th)
{