Test1.java revision 797:4868a36f6fd8
1156952Sume/*
2156952Sume * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
3156952Sume * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4156952Sume *
5156952Sume * This code is free software; you can redistribute it and/or modify it
6156952Sume * under the terms of the GNU General Public License version 2 only, as
7156952Sume * published by the Free Software Foundation.
8156952Sume *
9156952Sume * This code is distributed in the hope that it will be useful, but WITHOUT
10156952Sume * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11156952Sume * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12156952Sume * version 2 for more details (a copy is included in the LICENSE file that
13156952Sume * accompanied this code).
14156952Sume *
15156952Sume * You should have received a copy of the GNU General Public License version
16156952Sume * 2 along with this work; if not, write to the Free Software Foundation,
17156952Sume * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18170244Sume *
19170244Sume * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20170244Sume * or visit www.oracle.com if you need additional information or have any
21156952Sume * questions.
22270838Sume */
23156956Sume
24156952Sume/**
25156952Sume * @test
26156952Sume * @bug 6213430
27156952Sume * @clean Test1 X RefX
28156952Sume * @compile/ref=Test1.out -XDrawDiagnostics Test1.java RefX.java
29156952Sume */
30156952Sumeclass Test1
31156952Sume{
32156952Sume    void foo() {
33156952Sume        // the following doc comment should not affect the following class declaration
34156952Sume        /**
35156952Sume         * @deprecated
36156952Sume         */
37156952Sume        int x;
38156952Sume    }
39156952Sume}
40156952Sume
41156952Sumeclass X {
42156952Sume}
43156956Sume