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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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

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

                Created:
                Updated:
                Resolved: