Re: Unused sun.nio.fs.Reflect

2022-04-04 Thread Claes Redestad
On 2022-04-04 09:06, Alan Bateman wrote: On 02/04/2022 21:45, Claes Redestad wrote: : There's a sibling 'sun.nio.ch.Reflect' where a couple of methods are still dubiously in use in one place only in sun.nio.ch.InheritedChannel::createChannel to reflectively create a java.io.FileDescriptor. P

Re: Unused sun.nio.fs.Reflect

2022-04-04 Thread Alan Bateman
On 02/04/2022 21:45, Claes Redestad wrote: : There's a sibling 'sun.nio.ch.Reflect' where a couple of methods are still dubiously in use in one place only in sun.nio.ch.InheritedChannel::createChannel to reflectively create a java.io.FileDescriptor. Perhaps that could be refactored to use jdk.in

Re: Unused sun.nio.fs.Reflect

2022-04-02 Thread Claes Redestad
On 2022-04-02 19:40, Alan Bateman wrote: On 02/04/2022 16:56, Andrey Turbanov wrote: Hello. As I can see, the class 'sun.nio.fs.Reflect' is unused in JDK java code. Is it somehow used by VM, or is it just leftovers from some refactorings? I wonder if we can drop it. It was needed at one point b

Re: Unused sun.nio.fs.Reflect

2022-04-02 Thread Alan Bateman
On 02/04/2022 16:56, Andrey Turbanov wrote: Hello. As I can see, the class 'sun.nio.fs.Reflect' is unused in JDK java code. Is it somehow used by VM, or is it just leftovers from some refactorings? I wonder if we can drop it. It was needed at one point but if no longer used on any platform then