RFR: type of TypeVar.ref is incorrect and should be fixed

Vicente Romero vromero at openjdk.java.net
Wed Feb 23 20:54:47 UTC 2022


The type of TypeVar.ref is incorrect and should be fixed, in particular due to a bug, the compiler is not able to differentiate between  `T` and `T.ref`. Also did some cleanup to warnings related code, in particular there should be a different warning for cases when a universal tvar is not assigned `null` but it is assigned a value that could be null at run time. This warning should not be the same as the one for a plain null assignment.

-------------

Commit messages:
 - clean up to warnings related code

Changes: https://git.openjdk.java.net/valhalla/pull/658/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=658&range=00
  Stats: 87 lines in 6 files changed: 77 ins; 5 del; 5 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/658.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/658/head:pull/658

PR: https://git.openjdk.java.net/valhalla/pull/658



More information about the valhalla-dev mailing list