{"task": {"agent_timeout": 3000, "task": "codegen__spotbugs__spotbugs-3330", "verifier_timeout": 3000, "instruction": "This is a code generation task. You are expected to write working code that solves the described problem.\n<issue>\n      This might look similar to https://github.com/spotbugs/spotbugs/issues/2837 but it is different. \n\n#2837 is about fine-tuning the detector to be able to distinguish between passing a method reference and actually calling the method. The example there contains methods that could run into the issue. \n\n## Given\n\n```java\nimport java.io.File;\nimport java.net.URI;\nimport java.util.function.Function;\n\npublic class DirectCase2 {\n\n    private final Function<File, URI> uriTransform;\n\n    public DirectCase2() {\n        this(file -> file.toURI(), true);\n    }\n\n    public DirectCase2(Function<File, URI> uriTransform, boolean dummy) {\n        this.uriTransform = uriTransform;\n    }\n}\n```\n\n## Actual behavior\n\n```\nwas bugType=\"MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR\",className=<In class overridableMethodCall.DirectCase2>,methodName=<In method new overridableMethodCall.DirectCase2()>,fieldName=null,variableName=null,lineNumber=<At DirectCase2.java:[line 12]>,confidence=<3>\n```\n\n## Expected behavior\n\nI would expect `MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR` to be not reported for any symbol.\n\nA similar example has been discussed in comments in https://wiki.sei.cmu.edu/confluence/display/java/MET05-J.+Ensure+that+constructors+do+not+call+overridable+methods?focusedCommentId=312639499#comment-312639499\n\n## Reproduction\n\nFull reproduction: https://github.com/ghostbuster91/spotbugs/pull/new/repro-3328\n\n</issue>\nFocus on implementing the required functionality correctly and efficiently. Treat this as a programming challenge.\nYou are not allowed to read git history.\n", "memory": "8192m", "runnable": false, "difficulty": "hard", "language": "", "cpus": "", "instruction_truncated": false, "category": "code-generation", "compose": false, "has_solution": true, "oracle": null, "docker_image": "", "taskset": "devopsgym", "tags": ["code-generation", "devops-bench"]}, "runs": []}