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/04 00:01:24 UTC
svn commit: r1441984 - in /felix/trunk/framework: pom.xml
src/main/java/org/apache/felix/framework/BundleWiringImpl.java
Author: pauls
Date: Sun Feb 3 23:01:23 2013
New Revision: 1441984
URL: http://svn.apache.org/viewvc?rev=1441984&view=rev
Log:
Call registerAsParallelCapable via reflection to not add a dependency on java7 (FELIX-3553).
Modified:
felix/trunk/framework/pom.xml
felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
Modified: felix/trunk/framework/pom.xml
URL: http://svn.apache.org/viewvc/felix/trunk/framework/pom.xml?rev=1441984&r1=1441983&r2=1441984&view=diff
==============================================================================
--- felix/trunk/framework/pom.xml (original)
+++ felix/trunk/framework/pom.xml Sun Feb 3 23:01:23 2013
@@ -44,8 +44,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <target>1.5</target>
- <source>1.5</source>
+ <target>1.7</target>
+ <source>1.7</source>
</configuration>
</plugin>
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=1441984&r1=1441983&r2=1441984&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 23:01:23 2013
@@ -1811,9 +1811,12 @@ public class BundleWiringImpl implements
{
try
{
- BundleRevisionImpl.getSecureAction()
- .getMethod(ClassLoader.class, "registerAsParallelCapable", null)
- .invoke(null);
+ Method method = BundleRevisionImpl.getSecureAction()
+ .getDeclaredMethod(ClassLoader.class, "registerAsParallelCapable", null);
+
+ BundleRevisionImpl.getSecureAction().setAccesssible(method);
+
+ method.invoke(null);
}
catch (Throwable th)
{
@@ -1853,9 +1856,12 @@ public class BundleWiringImpl implements
{
try
{
- BundleRevisionImpl.getSecureAction()
- .getMethod(ClassLoader.class, "registerAsParallelCapable", null)
- .invoke(null);
+ Method method = BundleRevisionImpl.getSecureAction()
+ .getDeclaredMethod(ClassLoader.class, "registerAsParallelCapable", null);
+
+ BundleRevisionImpl.getSecureAction().setAccesssible(method);
+
+ method.invoke(null);
}
catch (Throwable th)
{