Skip to content

Commit

Permalink
Adds support for java 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed May 9, 2019
1 parent e537049 commit 6f5f945
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jicoco</artifactId>
<version>1.1-20190409.112040-14</version>
<version>1.1-20190509.130302-15</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -159,7 +159,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>ice4j</artifactId>
<version>2.0.0-20181005.221549-11</version>
<version>2.0.0-20190509.132540-35</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down Expand Up @@ -231,7 +231,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand Down
2 changes: 1 addition & 1 deletion resources/install/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Homepage: https://jitsi.org/meet

Package: jicofo
Architecture: any
Depends: ${misc:Depends}, openjdk-8-jre-headless
Depends: ${misc:Depends}, openjdk-8-jre-headless | openjdk-11-jre-headless
Description: JItsi Meet COnference FOcus
Jicofo is a conference focus for Jitsi Meet application.
24 changes: 2 additions & 22 deletions src/test/java/org/jitsi/jicofo/OSGiHandler.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Jicofo, the Jitsi Conference Focus.
*
* Copyright @ 2015 Atlassian Pty Ltd
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,8 +23,6 @@
import org.jitsi.meet.*;
import org.osgi.framework.*;

import java.lang.reflect.*;

/**
* Helper class takes encapsulates OSGi specifics operations.
*
Expand Down Expand Up @@ -112,7 +110,7 @@ public void stop(BundleContext bundleContext)
JicofoBundleConfig jicofoBundles = new JicofoBundleConfig();
jicofoBundles.setUseMockProtocols(true);
OSGi.setBundleConfig(jicofoBundles);
OSGi.setClassLoader(getPlatformClassLoader());
OSGi.setClassLoader(ClassLoader.getSystemClassLoader());

OSGi.start(bundleActivator);

Expand Down Expand Up @@ -161,24 +159,6 @@ public BundleContext bc()
return bc;
}

private ClassLoader getPlatformClassLoader() {
ClassLoader cl;
//JDK 9
try
{
Method getPlatformClassLoader =
ClassLoader.class.getMethod("getPlatformClassLoader");
cl = (ClassLoader) getPlatformClassLoader.invoke(null);
}
catch (NoSuchMethodException | IllegalAccessException |
InvocationTargetException t)
{
// pre-JDK9
cl = ClassLoader.getSystemClassLoader();
}
return cl;
}

public boolean isDeadlocked()
{
return deadlocked;
Expand Down

0 comments on commit 6f5f945

Please sign in to comment.