简体   繁体   中英

Why there is no java.nio.ByteBuffer in the source code of Openjdk1.8?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM