252N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
252N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
252N/A *
252N/A * This code is free software; you can redistribute it and/or modify it
252N/A * under the terms of the GNU General Public License version 2 only, as
252N/A * published by the Free Software Foundation.
252N/A *
252N/A * This code is distributed in the hope that it will be useful, but WITHOUT
252N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
252N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
252N/A * version 2 for more details (a copy is included in the LICENSE file that
252N/A * accompanied this code).
252N/A *
252N/A * You should have received a copy of the GNU General Public License version
252N/A * 2 along with this work; if not, write to the Free Software Foundation,
252N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
252N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
252N/A */
252N/A
252N/A/*
252N/A * @test
252N/A * @bug 6816548
252N/A * @summary Uninitialized register when performing casting + auto(un)boxing
252N/A * @author mcimadamore
252N/A */
252N/Apublic class T6816548 {
252N/A
252N/A public static void main(String[] args) {
252N/A testInt();
252N/A testShort();
252N/A testByte();
252N/A testChar();
252N/A }
252N/A
252N/A public static void testInt() {
252N/A final int fi = 0;
252N/A Byte b = fi;
252N/A Short s = fi;
252N/A Character c = fi;
252N/A }
252N/A
252N/A public static void testShort() {
252N/A final short fs = 0;
252N/A Byte b = fs;
252N/A Short s = fs;
252N/A Character c = fs;
252N/A }
252N/A
252N/A public static void testByte() {
252N/A final byte fb = 0;
252N/A Byte b = fb;
252N/A Short s = fb;
252N/A Character c = fb;
252N/A }
252N/A
252N/A public static void testChar() {
252N/A final char fc = '0';
252N/A Byte b = fc;
252N/A Short s = fc;
252N/A Character c = fc;
252N/A }
252N/A}