> javac is automatically placing the initializers of null restricted fields > before the super invocation. This is incorrect, null restricted fields are > not strict and those initializers should be placed after the super. But javac > will check that null restricted fields have been initialized before a super > invocation. This implies that null restricted fields should not have > initializers and users should manually initialize them in all the > constructors and before explicit super invocations.
Vicente Romero has updated the pull request incrementally with one additional commit since the last revision: adding tests ------------- Changes: - all: https://git.openjdk.org/valhalla/pull/1990/files - new: https://git.openjdk.org/valhalla/pull/1990/files/dab49936..6af6c9a8 Webrevs: - full: https://webrevs.openjdk.org/?repo=valhalla&pr=1990&range=05 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=1990&range=04-05 Stats: 178 lines in 1 file changed: 78 ins; 18 del; 82 mod Patch: https://git.openjdk.org/valhalla/pull/1990.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1990/head:pull/1990 PR: https://git.openjdk.org/valhalla/pull/1990
