8000 Upgrade the dependencies to the latest versions. · scala/scala-asm@2ff73af · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ff73af

Browse files
committed
Upgrade the dependencies to the latest versions.
1 parent a3d3933 commit 2ff73af

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

asm-util/src/test/java/org/objectweb/asm/util/ASMifierTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import java.io.StringWriter;
4141
import java.net.URL;
4242
import java.net.URLClassLoader;
43+
import java.util.ArrayList;
4344
import org.codehaus.commons.compiler.CompileException;
4445
import org.codehaus.janino.ClassLoaderIClassLoader;
4546
import org.codehaus.janino.IClassLoader;
@@ -108,10 +109,12 @@ void testAsmify_precompiledClass(final PrecompiledClass classParameter, final Ap
108109

109110
private 8000 static byte[] compile(final String name, final String source) throws IOException {
110111
Parser parser = new Parser(new Scanner(name, new StringReader(source)));
112+
ArrayList<org.codehaus.janino.util.ClassFile> generatedClassFiles = new ArrayList<>();
111113
try {
112114
UnitCompiler unitCompiler =
113115
new UnitCompiler(parser.parseAbstractCompilationUnit(), ICLASS_LOADER);
114-
return unitCompiler.compileUnit(true, true, true)[0].toByteArray();
116+
unitCompiler.compileUnit(true, true, true, generatedClassFiles);
117+
return generatedClassFiles.get(0).toByteArray();
115118
} catch (CompileException e) {
116119
throw new AssertionError(source, e);
117120
}

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ buildscript {
3131
dependencies { classpath 'org.netbeans.tools:sigtest-maven-plugin:1.5' }
3232
}
3333

34-
plugins { id 'biz.aQute.bnd.builder' version '6.2.0' apply false }
34+
plugins { id 'biz.aQute.bnd.builder' version '6.4.0' apply false }
3535
plugins { id 'com.github.sherter.google-java-format' version '0.9' apply false }
36-
plugins { id 'me.champeau.jmh' version '0.6.6' apply false }
37-
plugins { id 'org.sonarqube' version '3.3' apply false }
36+
plugins { id 'me.champeau.jmh' version '0.6.8' apply false }
37+
plugins { id 'org.sonarqube' version '3.5.0.2730' apply false }
3838

3939
description = 'ASM, a very small and fast Java bytecode manipulation framework'
4040

@@ -96,8 +96,8 @@ project(':asm-commons') {
9696
project(':asm-test') {
9797
description = "Utilities for testing ${parent.description}"
9898
provides = ['org.objectweb.asm.test']
99-
depends = ['org.junit.jupiter:junit-jupiter-api:5.8.2',
100-
'org.junit.jupiter:junit-jupiter-params:5.8.2']
99+
depends = ['org.junit.jupiter:junit-jupiter-api:5.9.1',
100+
'org.junit.jupiter:junit-jupiter-params:5.9.1']
101101
}
102102

103103
project(':asm-tree') {
@@ -110,7 +110,7 @@ project(':asm-util') {
110110
description = "Utilities for ${parent.description}"
111111
provides = ['org.objectweb.asm.util']
112112
requires = [':asm', ':asm-tree', ':asm-analysis']
113-
dependencies { testImplementation 'org.codehaus.janino:janino:3.1.6' }
113+
dependencies { testImplementation 'org.codehaus.janino:janino:3.1.9' }
114114
}
115115

116116
// Use "gradle benchmarks:jmh [-PjmhInclude='<regex>']" to run the benchmarks.
@@ -197,9 +197,9 @@ subprojects {
197197
dependencies {
198198
requires.each { projectName -> api project(projectName) }
199199
depends.each { artifactName -> api artifactName }
200-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2',
201-
'org.junit.jupiter:junit-jupiter-params:5.8.2'
202-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
200+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1',
201+
'org.junit.jupiter:junit-jupiter-params:5.9.1'
202+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
203203
testImplementation project(':asm-test')
204204
}
205205

0 commit comments

Comments
 (0)
0