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

New compiler warning after JDK-8067139

XMLWordPrintable

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

        After JDK-8067139, there's a new compiler warning

        /Users/attila/Documents/projects/nashorn-jdk9/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/codegen/Lower.java:330: warning: [unchecked] unchecked cast
            [javac] return (T)node.accept(new NodeVisitor<LexicalContext>(new LexicalContext()) {
            [javac] ^
            [javac] required: T
            [javac] found: Node
            [javac] where T is a type-variable:
            [javac] T extends Node declared in method <T>ensureUniqueNamesIn(T)

              attila Attila Szegedi
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: