Re: RFR: 8343251: Facelift for Type and AnnotatedType specifications [v7]

2024-12-28 Thread Chen Liang
On Thu, 5 Dec 2024 17:54:34 GMT, Chen Liang wrote: >> The Type and AnnotatedType hierarchies have been enigmatic to new users: >> users have no clue how to categorize arbitrary type objects, when it is safe >> to cast to more specific types, and the exact conditions for method >> contracts. >>

RFR: 8346869: [AIX] Add regression test for handling 4 Byte aligned doubles in structures

2024-12-28 Thread Martin Doerr
[JDK-8317545](https://bugs.openjdk.org/browse/JDK-8317545) introduced code for supporting 4 Byte aligned doubles: https://github.com/openjdk/jdk/blob/60e0730a3ba26180d0eb2cd278e389c3e70fec5f/src/java.base/share/classes/jdk/internal/foreign/abi/ppc64/aix/AixPPC64Linker.java#L59 We should test this

Re: Request for Enhancement: java.io.Writer.of(Appendable) as an efficient alternative to java.io.StringWriter

2024-12-28 Thread Markus KARG
Chen, thank you for your comments! My ideas to address them are: * flush(): If the Appendable implements Flushable, then perform Flushable.flush() on it. Otherwise, Writer.flush() will be a no-op (besides checking if Writer is open). * close(): If the Appendable implements Closeable, then pe