NoBoxingShort.java revision 553
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen/*
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * This code is free software; you can redistribute it and/or modify it
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * under the terms of the GNU General Public License version 2 only, as
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * published by the Free Software Foundation.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * This code is distributed in the hope that it will be useful, but WITHOUT
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * version 2 for more details (a copy is included in the LICENSE file that
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * accompanied this code).
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * You should have received a copy of the GNU General Public License version
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * 2 along with this work; if not, write to the Free Software Foundation,
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen *
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * or visit www.oracle.com if you need additional information or have any
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * questions.
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen */
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen/*
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * @test
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * @bug 6177400
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * @summary Boxing allowed with -source 1.4
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * @author Peter von der Ah\u00e9
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen * @compile/fail -source 1.4 NoBoxingShort.java
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen */
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlenpublic class NoBoxingShort {
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen Short s = 0;
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen}
760394c2089a0f30086a50e53eca12feaa2f9be1Knut Anders Hatlen