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

Allow custom or platform specific java source to automatically override shared source

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b64

      Backports

        Description

        Currently it's possible to do this:

        src/$module/share/native/libfoo/foo.c
        src/$module/linux/native/libfoo/foo.c

        And the result will be that the most specific, linux in this case, file will get compiled and the other one ignored. The same works for custom (closed) files overriding open. In addition to native code, this also works for files being copied by the SetupJavaCompilation macro, typically properties or other resources.

        For java code this does not work however and in the cases where such overrides are used, the makefiles need explicit excludes of the overridden file. I have implemented a solution for this that covers java files and cleaned files in addition to the copied files in SetupJavaCompilation, so we get consistent behavior for all sorts of sources.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  erikj Erik Joelsson
                  Reporter:
                  erikj Erik Joelsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: