{"record":{"id":"170e4645390bed5c","repo":"quarkusio/quarkus","slug":"methodname-is-not-a-getter-170e46","errorCode":null,"errorMessage":"${methodName} is not a getter","messagePattern":"(.+?) is not a getter","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JavaBeanUtil.java","lineNumber":70,"sourceCode":"                return new String(chars);\n            }\n        } else {\n            return name;\n        }\n    }\n\n    /**\n     * Returns the corresponding property name for a getter method name\n     *\n     * @throws IllegalArgumentException if the method name does not follow the getter name convention\n     */\n    public static String getPropertyNameFromGetter(String methodName) {\n        if (methodName.startsWith(GET)) {\n            return decapitalize(methodName.substring(GET.length()));\n        } else if (methodName.startsWith(IS)) {\n            return decapitalize(methodName.substring(IS.length()));\n        } else {\n            throw new IllegalArgumentException(methodName + \" is not a getter\");\n        }\n    }\n}\n","sourceCodeStart":52,"sourceCodeEnd":74,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JavaBeanUtil.java#L52-L74","documentation":"IllegalArgumentException from JavaBeanUtil.getPropertyNameFromGetter: the given method name does not follow the JavaBean getter convention (it starts with neither 'get' nor 'is'), so no property name can be derived. This is a sentinel guard for non-getter input; the method name at fault replaces the placeholder.","triggerScenarios":"Thrown at independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JavaBeanUtil.java:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the method to follow the get/is getter convention","Skip non-getter methods before calling property-name derivation"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}