Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6796844

Option to @compile is not used if system time is earlier than modification time of .java file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • jtreg4.0
    • tools
    • None
    • generic, x86
    • generic

      Compile option -g is not used if system time on the machine is set earlier than modification time of .java file for the test.

      To reproduce, use attached jtregbug.zip. Unzip it to directory in C:/Temp and change paths in jtreg_win.sh.

      $ bash jtreg_win.sh
      ...
      $ ls -la workDir/classes/package/HelloWorld.class
      -rwxrwxrwa 1 Administrators None 695 Jan 22 19:39 workDir/classes/package/HelloWorld.class

                                                         ^^^ All is well

      [Now change system time to Jan 1]

      $ bash jtreg_win.sh
      $ ls -la workDir/classes/package/HelloWorld.class
      -rwxrwxrwa 1 Administrators None 559 Jan 1 19:41 workDir/classes/package/HelloWorld.class

                                                         ^^^
                            This indicates that there is no debug information in class file.

            jjg Jonathan Gibbons
            nhaustov Nicolay Haustov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: