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

Build failure on Cygwin related to genExceptions.sh

XMLWordPrintable

    • x86
    • windows_xp

      When building the J2SE workspace using Cygwin (which appears to be a supported
      configuration for SCSL and source licensees judging from the build
      documentation), there is a failure in make/java/nio related to the script
      genExceptions.sh. The symptom is that all of the generated Java source files it
      creates are zero-length.

      The bug only occurs if the original "make" is invoked in the parent directory or
      higher (i.e., make/java or make). If make is invoked from the make/java/nio
      directory, the classes are generated successfully.

      The bug appears to be related to the use of "cat" and the redirection of
      standard input to output the exception classes' text. Redirecting the output of
      "echo" to the target file works. Catting a file containing some flat text into
      the target file also works.

      So far the failure has not been boiled down to a small test case. A two
      directory-deep recursive make setup was created that generated a trivial file
      in the bottommost make invocation using cat; this test succeeded.

      As a workaround and/or solution, the same spp.sh script used to generate the
      NIO Buffer classes' sources could be used to generate the exception classes.

            ohair Kelly Ohair (Inactive)
            kbr Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: