From a3b88a8d4b823d64e43d68d2fb4f6aca44c9f125 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 22 Aug 2024 19:43:48 -0600 Subject: [PATCH] Enable Runtime Method Parameter Reflection Several method security tests rely on method parameters being preserved, in order to demonstrate the difference between relying on runtime reflection and using the @P annotation. Closes gh-15680 --- .../main/groovy/io/spring/gradle/convention/EclipsePlugin.groovy | 1 + etc/eclipse/org.eclipse.jdt.core.prefs | 1 + 2 files changed, 2 insertions(+) diff --git a/buildSrc/src/main/groovy/io/spring/gradle/convention/EclipsePlugin.groovy b/buildSrc/src/main/groovy/io/spring/gradle/convention/EclipsePlugin.groovy index fc22969318..416b81d087 100644 --- a/buildSrc/src/main/groovy/io/spring/gradle/convention/EclipsePlugin.groovy +++ b/buildSrc/src/main/groovy/io/spring/gradle/convention/EclipsePlugin.groovy @@ -63,6 +63,7 @@ class EclipsePlugin implements Plugin { // test sources. Relax those from error to warning properties['org.eclipse.jdt.core.circularClasspath'] = 'warning' properties['org.eclipse.jdt.core.incompleteClasspath'] = 'warning' + properties['org.eclipse.jdt.core.compiler.codegen.methodParameters'] = 'generate' } } } diff --git a/etc/eclipse/org.eclipse.jdt.core.prefs b/etc/eclipse/org.eclipse.jdt.core.prefs index e44b6fc366..3ec70345df 100644 --- a/etc/eclipse/org.eclipse.jdt.core.prefs +++ b/etc/eclipse/org.eclipse.jdt.core.prefs @@ -10,6 +10,7 @@ org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=generate org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.6