Naming problem with hyphen in items' name for java classes #674
Labels
area:server
This item is related to the server extension
bug
Something isn't working
pinned
Issues and PRs that must not stale
When I use server generation for some classes with List and ArrayList, the class name has a hyphen in it, which is a syntax error for Java class name.
I have some schema as shown below:
The generated code will have something like this:
private List<Some-Other-Object> someList = new ArrayList<>(Some-Other-Object);
This will not compile. To match the naming convention, the code should be like this:
private List<SomeOtherObject> someList = new ArrayList<>(SomeOtherObject);
The file name of the some-other-object is fine. The file name is
SomeOtherObject.java
The text was updated successfully, but these errors were encountered: