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

ResponseCache and CookieHandler reg tests need to be updated for generified APIs

    XMLWordPrintable

Details

    • b50
    • generic
    • generic

    Description

      Due to the -source 1.5 default compiler option change in B49, there are 4 networking regression tests failed during compilation since they are still extending from the non-generic old APIs of the abstract classes.

      The 4 failed networking regression tests are:
      java/net/ResponseCache/Test.java
      java/net/ResponseCache/getResponseCode.java
      java/net/ResponseCache/ResponseCacheTest.java
      java/net/CookieHandler/CookieHandlerTest.java

      === TEST ERROR OUTPUT for Test ===
      /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/ResponseCac
      he/Test.java:19: <anonymous Test$1> is not abstract and does not override abstra
      ct method get(java.net.URI,java.lang.String,java.util.Map<java.lang.String,java.
      util.List<java.lang.String>>) in java.net.ResponseCache
                  public CacheRequest put(URI uri, URLConnection conn) throws IOException

      === TEST ERROR OUTPUT for getResponseCode ===
      /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/ResponseCac
      he/getResponseCode.java:37: getResponseCode.MyResponseCache is not abstract and
      does not override abstract method get(java.net.URI,java.lang.String,java.util.Ma
      p<java.lang.String,java.util.List<java.lang.String>>) in java.net.ResponseCache
          static class MyResponseCache extends ResponseCache {
                 ^
      Note: /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/Respo
      nseCache/getResponseCode.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.

      === TEST ERROR OUTPUT for ResponseCacheTest ===
      /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/ResponseCac
      he/ResponseCacheTest.java:136: ResponseCacheTest.MyResponseCache is not abstract
       and does not override abstract method get(java.net.URI,java.lang.String,java.ut
      il.Map<java.lang.String,java.util.List<java.lang.String>>) in java.net.ResponseC
      ache
          static class MyResponseCache extends ResponseCache {
                 ^
      Note: /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/Respo
      nseCache/ResponseCacheTest.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.

      === TEST ERROR OUTPUT for CookieHandlerTest ===
      /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/CookieHandl
      er/CookieHandlerTest.java:90: CookieHandlerTest.MyCookieHandler is not abstract
      and does not override abstract method put(java.net.URI,java.util.Map<java.lang.S
      tring,java.util.List<java.lang.String>>) in java.net.CookieHandler
          static class MyCookieHandler extends CookieHandler {
                 ^
      Note: /net/luster/export/scratch/jsn_re/jdk/jdk1.5.0/ws/j2se/test/java/net/Cooki
      eHandler/CookieHandlerTest.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error

      Attachments

        Issue Links

          Activity

            People

              ywangsunw Yingxian Wang (Inactive)
              valeriep Valerie Peng
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: