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

Fix test code to not get finalizer deprecation warnings

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b15


      test/hotspot/jtreg/vmTestbase/nsk/share/ClassUnloader.java:308: warning: [removal] runFinalization() in System has been deprecated and marked for removal
                      System.runFinalization();
                            ^
      and

      test/hotspot/jtreg/vmTestbase/nsk/share/CustomClassLoader.java:141: warning: [removal] finalize() in Object has been deprecated and marked for removal
          protected void finalize() throws Throwable {


            azafari Afshin Zafari
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: