Can we improve the charset parameter Javadoc in PrintStream?

2024-05-29 Thread Daniel Schmid
Hi, When viewing the Javadoc of PrintStream, I noticed that the Javadocs of the constructors involving charsets seems to be a bit lacking. In most cases, these just mention something like "a charset" instead of saying what it's used for. While the class description specifies that, I think it c

Re: yield return based on Continuations

2023-08-28 Thread Daniel Schmid
iterator is not fully consumed. -Alan On 28/08/2023 09:43, Daniel Schmid wrote: Hi, After seeing the JVM Language Summit talk on Continuations (https://www.youtube.com/watch?v=6nRS6UiN7X0), I thought about it being possible to implement something like "yield return" in languages like

yield return based on Coroutines

2023-08-28 Thread Daniel Schmid
Hi, After seeing the JVM Language Summit talk on Continuations (https://www.youtube.com/watch?v=6nRS6UiN7X0), I thought about it being possible to implement something like "yield return" in languages like C# (or "yield" in Python) based on Continuations. Kotlin has implemented a similar featur

Wrong exception in ComputedConstant#orElse Javadoc

2023-08-04 Thread Daniel Schmid
When viewing the propsed Javadoc of ComputedConstant#orElse (https://cr.openjdk.org/~pminborg/computed-constant/api/java.base/java/lang/ComputedConstant.html#orElse(V)),it mentions throwing an NoSuchElementException in case the element cannot be bound. However, the Javadoc also mentions returni

Re: 8311517: Adapt ArrayList Javadoc for sequenced collections

2023-07-20 Thread Daniel Schmid
penJDK account as I haven't contributed to OpenJDK projects before (Though I did sign the OCA). Yours, Daniel Am 20.07.2023 um 17:04 schrieb Daniel Schmid: I could create a PR for this if wanted. I would suggest changing > The size, isEmpty, get, set, iterator, and listIterator oper

Adapt ArrayList Javadoc for sequenced collections

2023-06-10 Thread Daniel Schmid
Dear members of the core-libs-dev mailing list, The JEP for sequenced collection (https://openjdk.org/jeps/431) would add addFirst(), removeFirst() and reversed() methods to lists. However, the Javadoc of List mentions: > The size, isEmpty, get, set, iterator, and listIterator operations run i