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

TEST_BUG:File locked when processing the cleanup on test jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • xml
    • None
    • b43
    • windows

        This can be tracked in jprt run:
        http://scaaa637.us.oracle.com/archive/2014/12/2014-12-09-225556.HaiboYan.jdk9-dev/logs/windows_i586-product-c1-jaxp_test.log.FAILED.log
        Log shows "The process cannot access the file because it is being used by another process.". The solution is straightforward.
        1. We use try-resource block to close the input file.
        2. We remove cleanup block since jtreg will take care of it

              Unassigned Unassigned
              tyan Tristan Yan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: