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

Some TestNG tests require default constructors

XMLWordPrintable

    • b26

        Some tests use a non-standard pattern of static test methods, such that they have not hitherto required an instance object, and these tests do not have a default constructor that can be invoked by TestNG.

        In TestNG 7, it is required that TestNG can create a test object: a test will now fail if a test object cannot be created, even if it is not required by the test method.

        In core-libs, there are two such tests:

        test/jdk/java/lang/Package/GetPackages.java
        test/jdk/java/lang/StackWalker/Basic.java

              ccleary Conor Cleary (Inactive)
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: