Skip to content

Commit

Permalink
Upgrade supported JDK version to 11 (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaneuler authored Jul 27, 2021
1 parent c941f18 commit 11db148
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 87 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ on:

jobs:
build:
runs-on: ubuntu-16.04

runs-on: ubuntu-20.04
strategy:
matrix:
jdk: [8, 11]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: ${{ matrix.jdk }}
- name: Install Zookeeper
run: echo "Install Zookeeper 3.5.6"
&& wget https://archive.apache.org/dist/zookeeper/zookeeper-3.5.6/apache-zookeeper-3.5.6-bin.tar.gz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
package com.alipay.sofa.isle.test.util;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;

import org.junit.runner.notification.RunNotifier;
Expand Down Expand Up @@ -81,7 +83,19 @@ public static AddCustomJar getAddCustomJarAnnotationRecursively(Class<?> klass)

public static class SeparateClassLoader extends URLClassLoader {
public SeparateClassLoader() {
super(((URLClassLoader) getSystemClassLoader()).getURLs(), null);
super(new URL[0], null);

try {
Field f = getSystemClassLoader().getClass().getDeclaredField("ucp");
f.setAccessible(true);
Object path = f.get(getSystemClassLoader());
Method m = path.getClass().getDeclaredMethod("getURLs");
for (URL url : (URL[]) m.invoke(path)) {
addURL(url);
}
} catch (Throwable e) {
// ignore
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public HealthResult healthCheck() {
}

/**
* Getter method for property <tt>appName</tt>.
* Getter method for property <code>appName</code>.
*
* @return property value of appName
*/
Expand All @@ -120,7 +120,7 @@ public String getAppName() {
}

/**
* Setter method for property <tt>appName</tt>.
* Setter method for property <code>appName</code>.
*
* @param appName value to be assigned to property appName
*/
Expand All @@ -129,7 +129,7 @@ public void setAppName(String appName) {
}

/**
* Getter method for property <tt>beanId</tt>.
* Getter method for property <code>beanId</code>.
*
* @return property value of beanId
*/
Expand All @@ -138,7 +138,7 @@ public String getBeanId() {
}

/**
* Setter method for property <tt>beanId</tt>.
* Setter method for property <code>beanId</code>.
*
* @param beanId value to be assigned to property beanId
*/
Expand All @@ -147,7 +147,7 @@ public void setBeanId(String beanId) {
}

/**
* Getter method for property <tt>rpcBindingParam</tt>.
* Getter method for property <code>rpcBindingParam</code>.
*
* @return property value of rpcBindingParam
*/
Expand All @@ -156,7 +156,7 @@ public RpcBindingParam getRpcBindingParam() {
}

/**
* Setter method for property <tt>rpcBindingParam</tt>.
* Setter method for property <code>rpcBindingParam</code>.
*
* @param rpcBindingParam value to be assigned to property rpcBindingParam
*/
Expand All @@ -165,7 +165,7 @@ public void setRpcBindingParam(RpcBindingParam rpcBindingParam) {
}

/**
* Getter method for property <tt>applicationContext</tt>.
* Getter method for property <code>applicationContext</code>.
*
* @return property value of applicationContext
*/
Expand All @@ -174,7 +174,7 @@ public ApplicationContext getApplicationContext() {
}

/**
* Setter method for property <tt>applicationContext</tt>.
* Setter method for property <code>applicationContext</code>.
*
* @param applicationContext value to be assigned to property applicationContext
*/
Expand All @@ -183,7 +183,7 @@ public void setApplicationContext(ApplicationContext applicationContext) {
}

/**
* Getter method for property <tt>inBinding</tt>.
* Getter method for property <code>inBinding</code>.
*
* @return property value of inBinding
*/
Expand All @@ -192,7 +192,7 @@ public boolean isInBinding() {
}

/**
* Setter method for property <tt>inBinding</tt>.
* Setter method for property <code>inBinding</code>.
*
* @param inBinding value to be assigned to property inBinding
*/
Expand All @@ -201,7 +201,7 @@ public void setInBinding(boolean inBinding) {
}

/**
* Getter method for property <tt>consumerConfig</tt>.
* Getter method for property <code>consumerConfig</code>.
*
* @return property value of consumerConfig
*/
Expand All @@ -210,7 +210,7 @@ public ConsumerConfig getConsumerConfig() {
}

/**
* Setter method for property <tt>consumerConfig</tt>.
* Setter method for property <code>consumerConfig</code>.
*
* @param consumerConfig value to be assigned to property consumerConfig
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class RpcBindingMethodInfo {
private Object callbackHandler;

/**
* Getter method for property <tt>name</tt>.
* Getter method for property <code>name</code>.
*
* @return property value of name
*/
Expand All @@ -47,7 +47,7 @@ public String getName() {
}

/**
* Setter method for property <tt>name</tt>.
* Setter method for property <code>name</code>.
*
* @param name value to be assigned to property name
*/
Expand All @@ -56,7 +56,7 @@ public void setName(String name) {
}

/**
* Getter method for property <tt>type</tt>.
* Getter method for property <code>type</code>.
*
* @return property value of type
*/
Expand All @@ -65,7 +65,7 @@ public String getType() {
}

/**
* Setter method for property <tt>type</tt>.
* Setter method for property <code>type</code>.
*
* @param type value to be assigned to property type
*/
Expand All @@ -74,7 +74,7 @@ public void setType(String type) {
}

/**
* Getter method for property <tt>timeout</tt>.
* Getter method for property <code>timeout</code>.
*
* @return property value of timeout
*/
Expand All @@ -83,7 +83,7 @@ public Integer getTimeout() {
}

/**
* Setter method for property <tt>timeout</tt>.
* Setter method for property <code>timeout</code>.
*
* @param timeout value to be assigned to property timeout
*/
Expand All @@ -92,7 +92,7 @@ public void setTimeout(Integer timeout) {
}

/**
* Getter method for property <tt>retries</tt>.
* Getter method for property <code>retries</code>.
*
* @return property value of retries
*/
Expand All @@ -101,7 +101,7 @@ public Integer getRetries() {
}

/**
* Setter method for property <tt>retries</tt>.
* Setter method for property <code>retries</code>.
*
* @param retries value to be assigned to property retries
*/
Expand All @@ -110,7 +110,7 @@ public void setRetries(Integer retries) {
}

/**
* Getter method for property <tt>callbackClass</tt>.
* Getter method for property <code>callbackClass</code>.
*
* @return property value of callbackClass
*/
Expand All @@ -119,7 +119,7 @@ public String getCallbackClass() {
}

/**
* Setter method for property <tt>callbackClass</tt>.
* Setter method for property <code>callbackClass</code>.
*
* @param callbackClass value to be assigned to property callbackClass
*/
Expand All @@ -128,7 +128,7 @@ public void setCallbackClass(String callbackClass) {
}

/**
* Getter method for property <tt>callbackRef</tt>.
* Getter method for property <code>callbackRef</code>.
*
* @return property value of callbackRef
*/
Expand All @@ -137,7 +137,7 @@ public String getCallbackRef() {
}

/**
* Setter method for property <tt>callbackRef</tt>.
* Setter method for property <code>callbackRef</code>.
*
* @param callbackRef value to be assigned to property callbackRef
*/
Expand All @@ -146,7 +146,7 @@ public void setCallbackRef(String callbackRef) {
}

/**
* Getter method for property <tt>callbackHandler</tt>.
* Getter method for property <code>callbackHandler</code>.
*
* @return property value of callbackHandler
*/
Expand All @@ -155,7 +155,7 @@ public Object getCallbackHandler() {
}

/**
* Setter method for property <tt>callbackHandler</tt>.
* Setter method for property <code>callbackHandler</code>.
*
* @param callbackHandler value to be assigned to property callbackHandler
*/
Expand Down
Loading

0 comments on commit 11db148

Please sign in to comment.