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

backslashes in gensrc/module-info.java comments need escaping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • infrastructure
    • None
    • b148
    • generic
    • generic

      Generated module-info.java files now contain comments of the form:

      module java.base {^M
          // source file: d:\java\ws\uvwxyz\jdk\src\java.base\share\classes\module-i
      nfo.java^M
          // d:\java\ws\uvwxyz\jdk\src\java.base\windows\classes\module
      -info.java.extra^M
          // d:\java\ws\uvwxyz\jdk\src\closed\java.base\share\classes\m
      odule-info.java.extra^M

      and javac treats \uvwxyz as invalid Unicode.

      d:\java\ws\uvwxyz\build\windows-x86_64-normal-server-fastdebug\support\gensrc\java.base\module-info.java:30: error: illegal unicode escape

      Possibly output these paths using "/" instead (cygwin-style)?

      Workaround is to not use directories that start with u.

            mchung Mandy Chung (Inactive)
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: