Java: basic support for Valhalla Value Classes (IDEA-364548)

GitOrigin-RevId: 93b0394866aae35772ccc90e7de822af8a94c6ce
This commit is contained in:
Bas Leijdekkers
2024-12-18 15:38:00 +01:00
committed by intellij-monorepo-bot
parent 36b258bc98
commit 2b32d9bb56
41 changed files with 526 additions and 148 deletions

View File

@@ -6,9 +6,9 @@ class AC extends AbstractValueBased {
{
final AC localAc = new AC();
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">ac</warning>) {}
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">objectAc</warning>) {}
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">localAc</warning>) {}
synchronized (<warning descr="Synchronization on instance of value-based class">ac</warning>) {}
synchronized (<warning descr="Synchronization on instance of value-based class">objectAc</warning>) {}
synchronized (<warning descr="Synchronization on instance of value-based class">localAc</warning>) {}
synchronized (AC.class) {}
synchronized (new Object()) {}
@@ -18,7 +18,7 @@ class AC extends AbstractValueBased {
}
void f(AC ac) {
synchronized (<warning descr="Attempt to synchronize on an instance of a value-based class">ac</warning>) {}
synchronized (<warning descr="Synchronization on instance of value-based class">ac</warning>) {}
}
void g(Object ac) {