From daniel.smith at oracle.com Wed Jan 8 06:23:18 2025 From: daniel.smith at oracle.com (Dan Smith) Date: Wed, 8 Jan 2025 06:23:18 +0000 Subject: EG meeting *canceled*, 2025-01-08 Message-ID: Just swapping things back in this week after the break, nothing new to cover. From daniel.smith at oracle.com Wed Jan 22 06:35:16 2025 From: daniel.smith at oracle.com (Dan Smith) Date: Wed, 22 Jan 2025 06:35:16 +0000 Subject: EG meeting *canceled*, 2025-01-22 Message-ID: I think I'm close to posting some updates, but not quite there yet, so let's cancel once again. Hopefully can have a productive discussion next time. From daniel.smith at oracle.com Thu Jan 30 20:39:49 2025 From: daniel.smith at oracle.com (Dan Smith) Date: Thu, 30 Jan 2025 20:39:49 +0000 Subject: New JEP: Warnings for Identity-Sensitive Libraries Message-ID: <38272CD3-F016-459F-A4E1-6C91DF21566D@oracle.com> I've created a small JEP as a follow-up to JEP 390 (Warnings for Value-Based Classes, delivered in 16). https://bugs.openjdk.org/browse/JDK-8340476 JEP 390 introduced javac warnings about synchronization attempts on value-based classes (including the wrapper classes), which will become errors when synchronizing on a value object. This JEP produces similar warnings for uses of identity-sensitive libraries with value-based classes, which will throw exceptions when operating on value objects. (JEP 390 also had a HotSpot diagnostic for the 'monitorenter' instruction, which we don't have an analog for here, because it didn't seem worthwhile, and we don't really have a mechanism for library diagnostics.) This JEP doesn't depend on value classes or other big features, so I'm envisioning getting it into the 25 release. From john.r.rose at oracle.com Thu Jan 30 21:44:39 2025 From: john.r.rose at oracle.com (John Rose) Date: Thu, 30 Jan 2025 13:44:39 -0800 Subject: New JEP: Warnings for Identity-Sensitive Libraries In-Reply-To: <38272CD3-F016-459F-A4E1-6C91DF21566D@oracle.com> References: <38272CD3-F016-459F-A4E1-6C91DF21566D@oracle.com> Message-ID: <3EADB675-1019-4B28-A01F-3A59E6E618C4@oracle.com> That?s very nicely framed. Not too much at first, with room to grow if we like what we get at first. On 30 Jan 2025, at 12:39, Dan Smith wrote: > I've created a small JEP as a follow-up to JEP 390 (Warnings for Value-Based Classes, delivered in 16). > > https://bugs.openjdk.org/browse/JDK-8340476 > > JEP 390 introduced javac warnings about synchronization attempts on value-based classes (including the wrapper classes), which will become errors when synchronizing on a value object. This JEP produces similar warnings for uses of identity-sensitive libraries with value-based classes, which will throw exceptions when operating on value objects. > > (JEP 390 also had a HotSpot diagnostic for the 'monitorenter' instruction, which we don't have an analog for here, because it didn't seem worthwhile, and we don't really have a mechanism for library diagnostics.) > > This JEP doesn't depend on value classes or other big features, so I'm envisioning getting it into the 25 release.