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

test/jdk/tools/launchers/SourceMode.java fails with long shebang line

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b18

      Backports

        Description

        When running the test with huge long paths for the launcher, we are running into the silent truncation problem for long shebang lines.

        The log added by JDK-8204588 shows the warning, and the subsequent truncated filename in the error message. The longest arguments passed to the shebang java is " --source 10 @testBadAtFile/bad.at" (35 chars).

        We should lower the max tolerated length of javacCmd from 100 to 90.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mchung Mandy Chung
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: