Make it possible to compile with java > 6
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1445182 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework.security/pom.xml b/framework.security/pom.xml
index c674053..947bcdb 100644
--- a/framework.security/pom.xml
+++ b/framework.security/pom.xml
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
- <version>4.3.0</version>
+ <version>5.0.0</version>
</dependency>
<dependency>
<groupId>${pom.groupId}</groupId>
@@ -54,8 +54,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <target>jsr14</target>
- <source>1.5</source>
+ <target>1.3</target>
+ <source>1.3</source>
</configuration>
</plugin>
<plugin>
diff --git a/framework.security/src/main/java/org/apache/felix/framework/security/condpermadmin/ConditionalPermissionAdminImpl.java b/framework.security/src/main/java/org/apache/felix/framework/security/condpermadmin/ConditionalPermissionAdminImpl.java
index aff71aa..f5f8bdd 100644
--- a/framework.security/src/main/java/org/apache/felix/framework/security/condpermadmin/ConditionalPermissionAdminImpl.java
+++ b/framework.security/src/main/java/org/apache/felix/framework/security/condpermadmin/ConditionalPermissionAdminImpl.java
@@ -461,7 +461,7 @@
return 0;
}
- public <A> A adapt(Class<A> arg0) {
+ public Object adapt(Class arg0) {
// TODO Auto-generated method stub
return null;
}
@@ -470,6 +470,11 @@
// TODO Auto-generated method stub
return null;
}
+
+ public int compareTo(Object t)
+ {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
private static class FakeCert extends X509Certificate
@@ -808,7 +813,7 @@
* it keeps track it builds up a list of postponed tuples which it will
* evaluate at the last domain. See the core spec 9.5.1 and following for a
* general description.
- *
+ *
* @param felixBundle
* the bundle in question.
* @param loader