PossibleLossPrecision.java revision 1304:9d47f4850714
167204Sobrien/*
267204Sobrien * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
3139738Simp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
467204Sobrien *
567204Sobrien * This code is free software; you can redistribute it and/or modify it
667204Sobrien * under the terms of the GNU General Public License version 2 only, as
767204Sobrien * published by the Free Software Foundation.
867204Sobrien *
967204Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT
1067204Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1167204Sobrien * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1267204Sobrien * version 2 for more details (a copy is included in the LICENSE file that
1367204Sobrien * accompanied this code).
1467204Sobrien *
1567204Sobrien * You should have received a copy of the GNU General Public License version
1667204Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
1767204Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1867204Sobrien *
1967204Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2067204Sobrien * or visit www.oracle.com if you need additional information or have any
2167204Sobrien * questions.
2267204Sobrien */
2367204Sobrien
2467204Sobrien// key: compiler.misc.possible.loss.of.precision
2567204Sobrien// key: compiler.err.prob.found.req
2667204Sobrien
2767204Sobrienclass PossibleLossPrecision {
2867204Sobrien    long l;
2967204Sobrien    int i = l;
3067204Sobrien}
3167204Sobrien