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

Raw types warning in WeakValueCache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • None
    • core-libs
    • b93
    • generic
    • generic

      Javac issues a raw types warning in KeyValueReference.java:

          [javac] /home/hannes/work/nashorn9-dev/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/WeakValueCache.java:55: warning: [rawtypes] found raw type: KeyValueReference
          [javac] final KeyValueReference ref = (KeyValueReference) refQueue.poll();
          [javac] ^
          [javac] missing type arguments for generic class KeyValueReference<K,V>
          [javac] where K,V are type-variables:
          [javac] K extends Object declared in class KeyValueReference
          [javac] V extends Object declared in class KeyValueReference

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: