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

jtreg does not know about all modules in the system image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jt4.2
    • Fix Version/s: jtreg4.2
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic

      Description

      I have seen this behavior in several tests. For instance, test/javax/transaction/testng/Driver.java

      If I add "*@modules java.sql java.transaction" to the test description, the test will be silently skipped by jtreg. If I remove "java.transaction", it will run well.
      The problem looks related with the line "* @compile -addmods java.transaction". A test will be skipped when there are the same modules declared by @modules or -addmods.

      Please confirm if it is legal to have the same module name in @modules or -addmods. If so, I think it is a jtreg bug.
      Even it is not illegal to declare duplicate, it looks not a good practice to just skip the test. This may lead to unexpected exclusion of tests. I would suggest to fail with error.



        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              xiaofeya Xiaofeng Yang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: