aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1921
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1921')
-rw-r--r--tests/bugs1921/gh_spring_27761/JpaRepositoryDump.java7
-rw-r--r--tests/bugs1921/gh_spring_27761/JpaRepository_bridge_first.jarbin456 -> 0 bytes
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/bugs1921/gh_spring_27761/JpaRepositoryDump.java b/tests/bugs1921/gh_spring_27761/JpaRepositoryDump.java
index a007abe96..b70330bff 100644
--- a/tests/bugs1921/gh_spring_27761/JpaRepositoryDump.java
+++ b/tests/bugs1921/gh_spring_27761/JpaRepositoryDump.java
@@ -3,12 +3,15 @@ import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
+import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
-class JpaRepositoryDump implements Opcodes {
+public class JpaRepositoryDump implements Opcodes {
public static void main(String[] args) throws IOException {
- try (FileOutputStream outputStream = new FileOutputStream("JpaRepository.class")) {
+ // Write class file to test sandbox directory
+ String classFile = args[0] + File.separator + "JpaRepository.class";
+ try (FileOutputStream outputStream = new FileOutputStream(classFile)) {
outputStream.write(dump());
}
}
diff --git a/tests/bugs1921/gh_spring_27761/JpaRepository_bridge_first.jar b/tests/bugs1921/gh_spring_27761/JpaRepository_bridge_first.jar
deleted file mode 100644
index 47aa5c053..000000000
--- a/tests/bugs1921/gh_spring_27761/JpaRepository_bridge_first.jar
+++ /dev/null
Binary files differ