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

New compiler warning after JDK-8067139

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b50
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: