We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls to the interceptable methods (like File.isFile) of the base class are not intercepted in descendants if called through super.
File.isFile
super
All calls to the interceptable methods are intercepted.
The user may e.g. bypass the configuration cache input detection by implementing a custom File subclass.
File
With the following plugin in buildSrc:
buildSrc
import org.gradle.api*; import java.io.*; public class SneakyPlugin implements Plugin<Project> { private static class MyFile extends File { public MyFile(File parent, String child) { super(parent, child); } @Override public boolean isFile() { return super.isFile(); } } public void apply(Project project) { MyFile f = new MyFile(project.getProjectDir(), "build.gradle"); System.out.println("my file is " + f.isFile()); } }
And the build script:
apply plugin: SneakyPlugin
Just run gradle --configuration-cache --info help and check the inputs in the report.
gradle --configuration-cache --info help
All, up to 8.9
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
Calls to the interceptable methods (like
File.isFile
) of the base class are not intercepted in descendants if called throughsuper
.Expected Behavior
All calls to the interceptable methods are intercepted.
Context (optional)
The user may e.g. bypass the configuration cache input detection by implementing a custom
File
subclass.Steps to Reproduce
With the following plugin in
buildSrc
:And the build script:
Just run
gradle --configuration-cache --info help
and check the inputs in the report.Gradle version
All, up to 8.9
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: