Recently I was reading the source code of OpenJDK1.8 and have a question about the source code. The question as below. Anyone can help?
The ByteBuffer class exists below the package java.nio in Oracle Java1.8, but I found there is no such class in the same package of OpenJDK1.8. I downloaded the source code of OpenJDK1.8 from here.
The source files with the .template suffix are processed in the JDK build to generate the classes at build time. For example, ByteBuffer (along with all IntBuffer, LongBuffer, ...) are generated from X-Buffer.java.template. If you have your own build then look in the gensrc tree in the output directory to see the generated classes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With