Skip to content

Commit 1633c09

Browse files
Update changelogs from fern repo (#5215)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent b9f4d29 commit 1633c09

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## 4.6.2
2+
**`(fix):`** Fix Java SDK generation crash when an OpenAPI property name is a Java keyword
3+
or literal (e.g. `true`, `false`, `null`, `if`, `new`). `KeyWordUtils` only
4+
sanitized 12 of Java's reserved words, so JavaPoet rejected the rest with
5+
`IllegalArgumentException: not a valid name`. The reserved-word set now covers
6+
the full Java keyword list plus `true`/`false`/`null` literals, so these
7+
properties generate as `_<name>` fields with `@JsonProperty("<name>")`
8+
preserving the wire format.
9+
10+

0 commit comments

Comments
 (0)