Browse files

modified karaf configuration to allow using sun.misc.Unsafe

git-svn-id: https://svn.apache.org/repos/asf/directmemory/trunk@1385391 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent f886b90 commit 93619c1f2e8363756a8b1ad1630c7942f4f9a158 Raffaele P. Guidi committed Sep 16, 2012
View
6 ...ts/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
@@ -177,6 +177,12 @@ private static String explode( Dictionary dictionary )
mavenBundle().groupId( "org.apache.directmemory" ).artifactId( "directmemory-cache" ).version(
System.getProperty( "direct.memory.version" ) ) );
List<Option> options = new ArrayList<Option>( mavenOptions );
+
+ options.add(vmOption("-Dorg.osgi.framework.system.packages.extra=sun.misc"));
+ // ^^^
+ //needed to avoid:
+ //org.osgi.framework.BundleException: The bundle "directmemory-cache_0.2.0.SNAPSHOT [12]" could not be resolved. Reason: Missing Constraint: Import-Package: sun.misc; version="0.0.0"
+
if ( Boolean.getBoolean( "osgi.debug" ) )
{
options.add( enabledDebuggingOnPort( Integer.getInteger( "osgi.debug.port" ),

0 comments on commit 93619c1

Please sign in to comment.