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

some incompatible APIs in jdk/test/lib

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8u251
    • Fix Version/s: 8-pool
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      eg. test/lib/jdk/test/lib/util/JarUtils.java makes use of transferTo,
      which is available since jdk9
      (https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/InputStream.html#transferTo(java.io.OutputStream)

      Another example is more tricky. the whitebox api isMethodCompilable doesn't work in test/lib/sun/hotspot/WhiteBox.java. It's because CompLevel_any=-1 in jdk8u. Whitebox APIs must be consistent with the implementation of hotspot.

      I'd like to fix them because I'd like to use jdk/test/lib to run vmTestbase.
      Otherwise, I have to check in another copy of same code in hotspot/test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xliu Xin Liu
                Reporter:
                xliu Xin Liu
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: