From 394e8da699f9c38ed075a4708bf9a4848f1e996f Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 29 May 2023 16:55:25 +0300 Subject: [PATCH] Include bridge and synthetic methods in Quiltflower output Sparked by: https://quarkusio.zulipchat.com/#narrow/stream/191168-core-team/topic/Decompiled.20classes --- .../quarkus/deployment/pkg/steps/JarResultBuildStep.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index 3936e20529b2e4..957aae067e4115 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -1681,7 +1681,14 @@ public boolean decompile(Path jarToDecompile) { int dotIndex = jarToDecompile.getFileName().toString().indexOf('.'); String fileName = jarToDecompile.getFileName().toString().substring(0, dotIndex); ProcessBuilder processBuilder = new ProcessBuilder( - Arrays.asList("java", "-jar", decompilerJar.toAbsolutePath().toString(), + Arrays.asList( + "java", + "-jar", + decompilerJar.toAbsolutePath().toString(), + "-rsy", // synthetic methods + "0", + "-rbr", // bridge methods + "0", jarToDecompile.toAbsolutePath().toString(), context.decompiledOutputDir.resolve(fileName).toAbsolutePath().toString())); if (log.isDebugEnabled()) {