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

jtreg should give a warning when encountering source files dated in the future

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg4.0
    • jtreg4.0
    • tools
    • None
    • team
    • generic
    • generic

      If a source file is dated in the future, the following scenario will fail to execute as might be expected
      @compile -g Foo
      @run main Foo

      The initial @compile action is unconditional and will always occur. The second "@run main" action has an implicit "rebuild if necessary" step, which may be invoked unexpectedly if the first action did not generate a class file newer than the corresponding source file.

      There is nothing jtreg can do to prevent such a situation, but it would help if it gave a warning altering the user to the situation.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: