Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8260406

Do not copy pure java source code to gensrc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ihse Magnus Ihse Bursie
              Reporter:
              ihse Magnus Ihse Bursie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: