Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Backporting OpenJDK v9 patches to OpenJDK v8


In the scope of one of the initiatives for the improvement of the source code structure (https://bugs.openjdk.java.net/browse/JDK-8051619) there are some significant changes in the way how the source files are located in OpenJDK v9. It means that if someone is making a patch for OpenJDK v9 and wants these changes to be applied to OpenJDK v8, he/she has to follow a special procedure. That procedure will do the required transformation in the path of changed files.

Getting ready

We need a computer which can run bash shell, that is, a Linux or Windows computer with Cygwin and the source code of OpenJDK v9 and OpenJDK v8.

How to do it…

Following these steps, a developer can learn how to port changes from OpenJDK v9 to OpenJDK v8:

  1. There is a special script that was created to help to port patches from OpenJDK v9 to OpenJDK v8. This script is located in common/bin/unshuffle_patch.sh. Run this script with the --help argument to see its usage:

    [user@localhost...