Package: asm / 9.0-1

06-disable-retrofitter.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Don't retrofit the classes for Java 5
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/build.gradle
+++ b/build.gradle
@@ -212,18 +212,6 @@
   }
   check.dependsOn jacocoTestCoverageVerification
 
-  // Retrofit the code to Java 1.5, in-place, in compileJava.doLast.
-  if (name != 'asm-test') {
-    compileJava.dependsOn ':tools:retrofitter:classes'
-    compileJava.doLast {
-      def path = project(':tools:retrofitter').sourceSets.main.runtimeClasspath
-      def loader = new URLClassLoader(path.collect {f -> f.toURL()} as URL[])
-      def retrofitter =
-          loader.loadClass('org.objectweb.asm.tools.Retrofitter').newInstance()
-      retrofitter.retrofit sourceSets.main.output.classesDirs.singleFile
-    }
-  }
-
   // Create one backward compatibility checking task for each 'sigtest-*' file
   // in test/resources, and make the 'check' task depend on all these tasks.
   if (file('src/test/resources/').exists()) {