> This PR introduces a new Xlint category: `initialization`. When enabled it
> will indicate if some code in an identity class couldn't be placed in the
> prologue phase. This applies to field initializers and constructors with no
> explicit `super` invocation. So for example for code like:
>
>
> class Test {
> int i = 0;
>
> Test() {
> this.i = 1;
> }
> }
>
>
> a warning will be issued as if there were a super invocation at the end of
> the constructor, the compiler would issue an error.
>
> PS. The new lint warning had to be disabled during the build as in other case
> it wouldn't finish
Vicente Romero has updated the pull request incrementally with one additional
commit since the last revision:
addressing review comments
-------------
Changes:
- all: https://git.openjdk.org/valhalla/pull/1595/files
- new: https://git.openjdk.org/valhalla/pull/1595/files/59e97476..19031778
Webrevs:
- full: https://webrevs.openjdk.org/?repo=valhalla&pr=1595&range=02
- incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1595&range=01-02
Stats: 14 lines in 2 files changed: 10 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/valhalla/pull/1595.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1595/head:pull/1595
PR: https://git.openjdk.org/valhalla/pull/1595