Describe the bug
A RAML specifying a query parameter named "class" results in the generation of a method getClass(), which is an invalid override of Object.
package com.example.test.resource.test.model;
public class TestGETQueryParam {
private String _class_;
public TestGETQueryParam(String class_) {
_class_ = class_;
}
public void setClass(String class_) {
_class_ = class_;
}
public String getClass() {
return _class_;
}
}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project test: Compilation failure
[ERROR] /home/wiono/Projects/test/target/generated-sources/com/example/test/resource/test/model/TestGETQueryParam.java:[17,19] getClass() in com.example.test.resource.test.model.TestGETQueryParam cannot override getClass() in java.lang.Object
[ERROR] overridden method is final
Describe the bug A RAML specifying a query parameter named "class" results in the generation of a method getClass(), which is an invalid override of Object.
To Reproduce Steps to reproduce the behavior:
Generate a client from the following RAML:
Expected behavior The generated client should compile.
Additional context Add any other context about the problem here.
Maven:
Plugin configuration: