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

cast conversion fails when converting a type-variable to primitive type

    Details

    • Subcomponent:
    • Resolved In Build:
      b99
    • Verification:
      Verified

      Description

      The following program is erroneously rejected by javac:

      class Test<T> {
          public void foo(T valIn){
              double val = (double ) valIn;
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vromero Vicente Arturo Romero Zaldivar
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: