CastTypeVarToPrimitiveTest.java revision 3174:d53f7a1cde9c
11195Srgrimes/*
250472Speter * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
337Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
473251Sgshapiro *
538103Speter * This code is free software; you can redistribute it and/or modify it
673251Sgshapiro * under the terms of the GNU General Public License version 2 only, as
738103Speter * published by the Free Software Foundation.
899451Sru *
9114780Sdougb * This code is distributed in the hope that it will be useful, but WITHOUT
10114780Sdougb * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1165532Snectar * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1255230Speter * version 2 for more details (a copy is included in the LICENSE file that
13113674Smtm * accompanied this code).
14120521Smarkm *
15114555Sdougb * You should have received a copy of the GNU General Public License version
16114492Sdougb * 2 along with this work; if not, write to the Free Software Foundation,
1798187Sgordon * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1855230Speter *
191734Sjkh * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2017639Swosch * or visit www.oracle.com if you need additional information or have any
2117639Swosch * questions.
22121911Smarkm */
23121911Smarkm
24121911Smarkm/*
2537Srgrimes * @test
26121911Smarkm * @bug 8144832
2798548Sru * @summary cast conversion fails when converting a type-variable to primitive type
2857488Speter * @compile CastTypeVarToPrimitiveTest.java
2974837Sgreen */
30124214Sdes
3157459Smarkmpublic class CastTypeVarToPrimitiveTest<T> {
3260677Skris    void foo(T valIn){
3360677Skris        double val = (double)valIn;
3460677Skris    }
3582521Salex}
36108002Sgreen