JDK 21 |
---|
21Resolved |
The new lint option, `this-escape`, has been added to `javac` to warn about calls to overridable methods in the constructor body which might result in access to a partially constructed object from subclasses. The new warning can be suppressed using `SuppressWarnings("this-escape")`.