test/com/sun/javadoc/testValueTag/pkg1/Class1.java

Wed, 25 Sep 2013 22:26:42 -0700

author
bpatel
date
Wed, 25 Sep 2013 22:26:42 -0700
changeset 2062
9e884d3ddb0b
parent 554
9d9f26857129
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8004825: javadoc crash DocletAbortException
Reviewed-by: jjg

duke@1 1 /*
bpatel@2062 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
duke@1 7 * published by the Free Software Foundation.
duke@1 8 *
duke@1 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 * accompanied this code).
duke@1 14 *
duke@1 15 * You should have received a copy of the GNU General Public License version
duke@1 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 *
ohair@554 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554 20 * or visit www.oracle.com if you need additional information or have any
ohair@554 21 * questions.
duke@1 22 */
duke@1 23
duke@1 24 package pkg1;
duke@1 25
duke@1 26 /**
duke@1 27 * Result: {@value TEST_2_PASSES}
duke@1 28 */
duke@1 29 public class Class1 {
duke@1 30
duke@1 31 /**
duke@1 32 * Result: {@value}
duke@1 33 */
duke@1 34 public static final String TEST_1_PASSES = "Test 1 passes";
duke@1 35
duke@1 36 public static final String TEST_2_PASSES = "Test 2 passes";
duke@1 37 public static final String TEST_3_PASSES = "Test 3 passes";
duke@1 38 public static final String TEST_4_PASSES = "Test 4 passes";
duke@1 39 public static final String TEST_5_PASSES = "Test 5 passes";
duke@1 40 public static final String TEST_6_PASSES = "Test 6 passes";
duke@1 41 public static final String TEST_7_PASSES = "Test 7 passes";
duke@1 42 public static final String TEST_8_PASSES = "Test 8 passes";
duke@1 43 public static final String TEST_9_PASSES = "Test 9 passes";
duke@1 44 public static final String TEST_10_PASSES = "Test 10 passes";
duke@1 45 public static final String TEST_11_PASSES = "Test 11 passes";
duke@1 46
duke@1 47 /**
bpatel@2062 48 * Invalid (non-constant field): {@value}
bpatel@2062 49 */
bpatel@2062 50 public static String TEST_12_ERROR = "Test 12 generates an error message";
bpatel@2062 51
bpatel@2062 52 /**
bpatel@2062 53 * Invalid (null): {@value}
bpatel@2062 54 */
bpatel@2062 55 public static final String NULL = null;
bpatel@2062 56
bpatel@2062 57 /**
duke@1 58 * Result: {@value TEST_3_PASSES}
duke@1 59 */
duke@1 60 public int field;
duke@1 61
duke@1 62 /**
duke@1 63 * Result: {@value TEST_4_PASSES}
duke@1 64 */
duke@1 65 public Class1() {}
duke@1 66
duke@1 67 /**
duke@1 68 * Result: {@value TEST_5_PASSES}
duke@1 69 */
duke@1 70 public void method() {}
duke@1 71
duke@1 72 /**
bpatel@2062 73 * Result: {@value TEST_12_ERROR}
bpatel@2062 74 */
bpatel@2062 75 public void invalidValueTag1() {}
bpatel@2062 76
bpatel@2062 77 /**
bpatel@2062 78 * Result: {@value}
bpatel@2062 79 */
bpatel@2062 80 public void invalidValueTag2() {}
bpatel@2062 81
bpatel@2062 82 /**
bpatel@2062 83 * Result: {@value NULL}
bpatel@2062 84 */
bpatel@2062 85 public void testNullConstant() {}
bpatel@2062 86
bpatel@2062 87 /**
duke@1 88 * Result: {@value pkg1.Class1#TEST_6_PASSES}
duke@1 89 */
duke@1 90 public class NestedClass{}
duke@1 91 }

mercurial