For java.base gensrc we do the following: # Copy two Java files that need no preprocessing. $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/%.java: $(CHARACTERDATA_TEMPLATES)/%.java.template $(call LogInfo, Generating $(@F)) $(call install-file)
GENSRC_CHARACTERDATA += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/CharacterDataUndefined.java \ $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/CharacterDataPrivateUse.java What this means is that we have two "template" files that are just compiled as java files, but only after being copied to gensrc. :-) We should just rename these files to java and move them to the normal source directory. ------------- Commit messages: - 8260406: Do not copy pure java source code to gensrc Changes: https://git.openjdk.java.net/jdk/pull/2233/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2233&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8260406 Stats: 9 lines in 3 files changed: 0 ins; 8 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/2233.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2233/head:pull/2233 PR: https://git.openjdk.java.net/jdk/pull/2233