Re: The javadocs of some methods in NIO Buffer are missing @since

2023-01-03 Thread Glavo
You are talking about an idealistic situation that is divorced from reality. When using the -target option, I need to set the bootclasspath at the same time -- at least in theory. But in the real world, I have never seen this option set in the build script of any project. If I open an issue in a p

Re: The javadocs of some methods in NIO Buffer are missing @since

2022-12-31 Thread Alan Bateman
On 30/12/2022 19:11, Glavo wrote: I agree that it is a good choice to use -release or set bootclasspath. However, this is not always realistic. Using -release means that we will encounter many JPMS problems. For example, using --add-exports for system modules is not allowed when using -release

Re: The javadocs of some methods in NIO Buffer are missing @since

2022-12-30 Thread Glavo
I agree that it is a good choice to use -release or set bootclasspath. However, this is not always realistic. Using -release means that we will encounter many JPMS problems. For example, using --add-exports for system modules is not allowed when using -release. In addition, sometimes we may want

Re: The javadocs of some methods in NIO Buffer are missing @since

2022-12-30 Thread Joe Darcy
On 12/30/2022 4:12 AM, Glavo wrote: Java 9 overrides the rewind, flip and other methods of Buffer in subclasses of Buffer such as ByteBuffer. The methods in these subclasses do not add @since 9 to javadoc. I think this is an oversight, because this modification destroys some code. When compili

The javadocs of some methods in NIO Buffer are missing @since

2022-12-30 Thread Glavo
Java 9 overrides the rewind, flip and other methods of Buffer in subclasses of Buffer such as ByteBuffer. The methods in these subclasses do not add @since 9 to javadoc. I think this is an oversight, because this modification destroys some code. When compiling them with JDK 9+ and using the -targe