langtools/test/jdk/javadoc/doclet/testOrdering/TestOrdering.java
author bpatel
Wed, 01 Feb 2017 15:16:49 -0800
changeset 43570 c7b68caf3ab4
parent 42000 8b7412f7eecd
permissions -rw-r--r--
8169813: The index pages are sorted in a confusing manner Reviewed-by: jjg, ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     1
/*
43570
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
     2
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     4
 *
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     7
 * published by the Free Software Foundation.
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     8
 *
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    13
 * accompanied this code).
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    14
 *
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    18
 *
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    21
 * questions.
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    22
 */
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    23
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    24
/*
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    25
 * @test
43570
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
    26
 * @bug 8039410 8042601 8042829 8049393 8050031 8155061 8155995 8167967 8169813
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    27
 * @summary test to determine if members are ordered correctly
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    28
 * @library ../lib/
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 35426
diff changeset
    29
 * @modules jdk.javadoc/jdk.javadoc.internal.tool
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    30
 * @build JavadocTester
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    31
 * @run main TestOrdering
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    32
 */
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    33
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    34
import java.io.File;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    35
import java.io.IOException;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    36
import java.nio.file.Files;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    37
import java.util.ArrayList;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    38
import java.util.Arrays;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    39
import java.util.Collections;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    40
import java.util.List;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    41
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    42
import static java.nio.file.StandardOpenOption.*;
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    43
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    44
public class TestOrdering extends JavadocTester {
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    45
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    46
    public static void main(String[] args) throws Exception {
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    47
        TestOrdering tester = new TestOrdering();
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    48
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    49
    }
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    50
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    51
    @Test
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    52
    void testUnnamedPackagesForClassUse() {
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    53
        new UnnamedPackageForClassUseTest(this).run();
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    54
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    55
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24394
diff changeset
    56
    @Test
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    57
    void testNamedPackagesForClassUse() {
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    58
        new NamedPackagesForClassUseTest(this).run();
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    59
    }
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
    60
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    61
    @Test
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    62
    void testIndexOrdering() throws IOException {
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    63
        new IndexOrderingTest(this).run();
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
    64
    }
25300
3b8a5067fe29 8047162: [javadoc] index files are non deterministic
ksrini
parents: 25004
diff changeset
    65
3b8a5067fe29 8047162: [javadoc] index files are non deterministic
ksrini
parents: 25004
diff changeset
    66
    @Test
3b8a5067fe29 8047162: [javadoc] index files are non deterministic
ksrini
parents: 25004
diff changeset
    67
    void testIndexTypeClustering() {
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    68
        new IndexTypeClusteringTest(this).run();
25300
3b8a5067fe29 8047162: [javadoc] index files are non deterministic
ksrini
parents: 25004
diff changeset
    69
    }
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    70
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    71
    @Test
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    72
    void testTypeElementMemberOrdering() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    73
        new TypeElementMemberOrderingTest(this).run();
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    74
    }
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    75
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    76
    static class UnnamedPackageForClassUseTest {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    77
        final JavadocTester tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    78
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    79
        UnnamedPackageForClassUseTest(JavadocTester tester) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    80
            this.tester = tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    81
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    82
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    83
        void run() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    84
            tester.javadoc("-d", "out",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    85
                    "-sourcepath", testSrc,
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    86
                    "-use",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    87
                    tester.testSrc("C.java"), tester.testSrc("UsedInC.java"));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    88
            tester.checkExit(Exit.OK);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    89
            checkExecutableMemberOrdering("class-use/UsedInC.html");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    90
        }
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    91
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    92
        void checkExecutableMemberOrdering(String usePage) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    93
            String contents = tester.readFile(usePage);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    94
            // check constructors
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    95
            tester.checking("constructors");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    96
            int idx1 = contents.indexOf("C.html#C-UsedInC");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    97
            int idx2 = contents.indexOf("C.html#C-UsedInC-int");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    98
            int idx3 = contents.indexOf("C.html#C-UsedInC-java.lang.String");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
    99
            if (idx1 == -1 || idx2 == -1 || idx3 == -1) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   100
                tester.failed("ctor strings not found");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   101
            } else if (idx1 > idx2 || idx2 > idx3 || idx1 > idx3) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   102
                tester.failed("ctor strings are out of order");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   103
            } else {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   104
                tester.passed("ctor strings are in order");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   105
            }
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 37752
diff changeset
   106
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   107
            // check methods
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   108
            tester.checking("methods");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   109
            idx1 = contents.indexOf("C.html#ymethod-int");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   110
            idx2 = contents.indexOf("C.html#ymethod-java.lang.String");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   111
            if (idx1 == -1 || idx2 == -1) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   112
                tester.failed("#ymethod strings not found");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   113
            } else if (idx1 > idx2) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   114
                tester.failed("#ymethod strings are out of order");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   115
            } else {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   116
                tester.passed("Executable Member Ordering: OK");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   117
            }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   118
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   119
    }
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   120
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   121
    static class NamedPackagesForClassUseTest {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   122
        final JavadocTester tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   123
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   124
        NamedPackagesForClassUseTest(JavadocTester tester) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   125
            this.tester = tester;
40511
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 37752
diff changeset
   126
        }
1b3c502e0bdc 8155995: Update javadoc to include module search
bpatel
parents: 37752
diff changeset
   127
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   128
        public void run() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   129
            tester.javadoc("-d", "out-1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   130
                    "-sourcepath", tester.testSrc,
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   131
                    "-use",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   132
                    "pkg1");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   133
            tester.checkExit(Exit.OK);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   134
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   135
            checkClassUseOrdering("pkg1/class-use/UsedClass.html");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   136
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   137
            tester.checkOrder("pkg1/class-use/UsedClass.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   138
                    "../../pkg1/MethodOrder.html#m--",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   139
                    "../../pkg1/MethodOrder.html#m-byte:A-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   140
                    "../../pkg1/MethodOrder.html#m-double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   141
                    "../../pkg1/MethodOrder.html#m-double-double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   142
                    "../../pkg1/MethodOrder.html#m-double-java.lang.Double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   143
                    "../../pkg1/MethodOrder.html#m-int-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   144
                    "../../pkg1/MethodOrder.html#m-int-int-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   145
                    "../../pkg1/MethodOrder.html#m-int-java.lang.Integer-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   146
                    "../../pkg1/MethodOrder.html#m-long-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   147
                    "../../pkg1/MethodOrder.html#m-long-long-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   148
                    "../../pkg1/MethodOrder.html#m-long-java.lang.Long-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   149
                    "../../pkg1/MethodOrder.html#m-long-java.lang.Long...-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   150
                    "../../pkg1/MethodOrder.html#m-java.lang.Double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   151
                    "../../pkg1/MethodOrder.html#m-java.lang.Double-double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   152
                    "../../pkg1/MethodOrder.html#m-java.lang.Double-java.lang.Double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   153
                    "../../pkg1/MethodOrder.html#m-java.lang.Integer-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   154
                    "../../pkg1/MethodOrder.html#m-java.lang.Integer-int-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   155
                    "../../pkg1/MethodOrder.html#m-java.lang.Integer-java.lang.Integer-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   156
                    "../../pkg1/MethodOrder.html#m-java.lang.Object:A-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   157
                    "../../pkg1/MethodOrder.html#m-java.util.ArrayList-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   158
                    "../../pkg1/MethodOrder.html#m-java.util.Collection-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   159
                    "../../pkg1/MethodOrder.html#m-java.util.List-");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   160
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   161
            tester.checkOrder("pkg1/class-use/UsedClass.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   162
                    "../../pkg1/MethodOrder.html#tpm-pkg1.UsedClass-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   163
                    "../../pkg1/MethodOrder.html#tpm-pkg1.UsedClass-pkg1.UsedClass-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   164
                    "../../pkg1/MethodOrder.html#tpm-pkg1.UsedClass-pkg1.UsedClass:A-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   165
                    "../../pkg1/MethodOrder.html#tpm-pkg1.UsedClass-java.lang.String-");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   166
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   167
            tester.checkOrder("pkg1/class-use/UsedClass.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   168
                    "../../pkg1/A.html#A-pkg1.UsedClass-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   169
                    "../../pkg1/B.A.html#A-pkg1.UsedClass-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   170
                    "../../pkg1/B.html#B-pkg1.UsedClass-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   171
                    "../../pkg1/A.C.html#C-pkg1.UsedClass-java.lang.Object:A-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   172
                    "../../pkg1/A.C.html#C-pkg1.UsedClass-java.util.Collection-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   173
                    "../../pkg1/A.C.html#C-pkg1.UsedClass-java.util.List-");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   174
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   175
            tester.checkOrder("pkg1/ImplementsOrdering.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   176
                    "<dd><code>close</code>&nbsp;in interface&nbsp;<code>java.lang.AutoCloseable</code></dd>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   177
                    "<dd><code>close</code>&nbsp;in interface&nbsp;<code>java.nio.channels.Channel</code></dd>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   178
                    "<dd><code>close</code>&nbsp;in interface&nbsp;<code>java.io.Closeable</code></dd>");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   179
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   180
            tester.checkOrder("pkg1/OverrideOrdering.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   181
                    "<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.util.Collection&lt;",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   182
                    "<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.lang.Iterable&lt;");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   183
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   184
            tester.checkOrder("allclasses-noframe.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   185
                    "pkg1/A.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   186
                    "pkg1/A.C.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   187
                    "pkg1/B.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   188
                    "pkg1/B.A.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   189
                    "pkg1/C1.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   190
                    "pkg1/C2.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   191
                    "pkg1/C3.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   192
                    "pkg1/C4.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   193
                    "pkg1/ImplementsOrdering.html\" title=\"interface in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   194
                    "pkg1/MethodOrder.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   195
                    "pkg1/OverrideOrdering.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   196
                    "pkg1/UsedClass.html\" title=\"class in pkg1");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   197
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   198
            tester.checkOrder("allclasses-frame.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   199
                    "pkg1/A.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   200
                    "pkg1/A.C.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   201
                    "pkg1/B.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   202
                    "pkg1/B.A.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   203
                    "pkg1/C1.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   204
                    "pkg1/C2.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   205
                    "pkg1/C3.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   206
                    "pkg1/C4.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   207
                    "pkg1/ImplementsOrdering.html\" title=\"interface in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   208
                    "pkg1/MethodOrder.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   209
                    "pkg1/OverrideOrdering.html\" title=\"class in pkg1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   210
                    "pkg1/UsedClass.html\" title=\"class in pkg1");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   211
        }
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   212
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   213
        void checkClassUseOrdering(String usePage) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   214
            checkClassUseOrdering(usePage, "pkg1/C#ITERATION#.html#zfield");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   215
            checkClassUseOrdering(usePage, "pkg1/C#ITERATION#.html#fieldInC#ITERATION#");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   216
            checkClassUseOrdering(usePage, "pkg1/C#ITERATION#.html#zmethod-pkg1.UsedClass");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   217
            checkClassUseOrdering(usePage, "pkg1/C#ITERATION#.html#methodInC#ITERATION#");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   218
        }
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   219
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   220
        void checkClassUseOrdering(String usePage, String searchString) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   221
            String contents = tester.readFile(usePage);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   222
            int lastidx = 0;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   223
            System.out.println("testing for " + searchString);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   224
            for (int i = 1; i < 5; i++) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   225
                String s = searchString.replaceAll("#ITERATION#", Integer.toString(i));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   226
                tester.checking(s);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   227
                int idx = contents.indexOf(s);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   228
                if (idx < lastidx) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   229
                    tester.failed(s + ", member ordering error, last:" + lastidx + ", got:" + idx);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   230
                } else {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   231
                    tester.passed("\tlast: " + lastidx + " got:" + idx);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   232
                }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   233
                lastidx = idx;
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   234
            }
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   235
        }
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   236
    }
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   237
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   238
    static class IndexOrderingTest {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   239
        private final JavadocTester tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   240
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   241
        IndexOrderingTest(JavadocTester tester) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   242
            this.tester = tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   243
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   244
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   245
        enum ListOrder {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   246
            NONE, REVERSE, SHUFFLE
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   247
        };
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   248
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   249
        /*
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   250
         * By default we do not shuffle the input list, in order to keep the list deterministic,
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   251
         * and the test predictable. However, we can turn on the stress mode, by setting the following
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   252
         * property if required.
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   253
         */
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   254
        static final ListOrder STRESS_MODE = Boolean.getBoolean("TestOrder.STRESS")
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   255
                ? ListOrder.SHUFFLE
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   256
                : ListOrder.REVERSE;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   257
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   258
        /*
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   259
         * Controls the number of children packages, pkg0, pkg0.pkg, pkg0.pkg.pkg, .....
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   260
         * Note: having too long a depth (> 256 chars on Windows), will likely lead to
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   261
         * cause problems with automated build and test systems.
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   262
         */
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   263
        static final int MAX_SUBPACKAGES_DEPTH = 4;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   264
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   265
        /*
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   266
         * Controls the number of sibling packages,  pkg0, pkg1, pkg2, .....
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   267
         */
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   268
        static final int MAX_PACKAGES = 4;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   269
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   270
        static String[] contents = {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   271
            "public add ADDADD;",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   272
            "public add AddAdd;",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   273
            "public add addadd;",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   274
            "public enum add {add, ADD, addd, ADDD};",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   275
            "public enum ADD {ADD, add, addd, ADDD};",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   276
            "public void   add(){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   277
            "public void   add(double d){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   278
            "public void   add(int i, float f){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   279
            "public void   add(float f, int i){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   280
            "public void   add(double d, byte b){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   281
            "public Double add(Double d) {return (double) 22/7;}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   282
            "public double add(double d1, double d2) {return d1 + d2;}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   283
            "public double add(double d1, Double  d2) {return d1 + d2;}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   284
            "public Float  add(float f) {return (float) 22/7;}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   285
            "public void   add(int i){}",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   286
            "public int    add(Integer i) {return 0;}"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   287
        };
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   288
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   289
        static String expectedEnumOrdering[] = {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   290
            "Add.add.html\" title=\"enum in REPLACE_ME\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   291
            "Add.ADD.html\" title=\"enum in REPLACE_ME\""
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   292
        };
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   293
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   294
        static String expectedFieldOrdering[] = {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   295
            "Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   296
            "add0/add/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   297
            "add0/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   298
            "add0/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   299
            "add0/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   300
            "add1/add/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   301
            "add1/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   302
            "add1/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   303
            "add1/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   304
            "add2/add/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   305
            "add2/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   306
            "add2/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   307
            "add2/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   308
            "add3/add/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   309
            "add3/add/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   310
            "add3/add/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   311
            "add3/Add.html#addadd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   312
            "Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   313
            "add0/add/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   314
            "add0/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   315
            "add0/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   316
            "add0/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   317
            "add1/add/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   318
            "add1/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   319
            "add1/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   320
            "add1/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   321
            "add2/add/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   322
            "add2/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   323
            "add2/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   324
            "add2/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   325
            "add3/add/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   326
            "add3/add/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   327
            "add3/add/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   328
            "add3/Add.html#AddAdd\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   329
            "Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   330
            "add0/add/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   331
            "add0/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   332
            "add0/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   333
            "add0/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   334
            "add1/add/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   335
            "add1/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   336
            "add1/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   337
            "add1/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   338
            "add2/add/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   339
            "add2/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   340
            "add2/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   341
            "add2/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   342
            "add3/add/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   343
            "add3/add/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   344
            "add3/add/Add.html#ADDADD\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   345
            "add3/Add.html#ADDADD\""
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   346
        };
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   347
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   348
        static String expectedMethodOrdering[] = {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   349
            "Add.html#add--",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   350
            "Add.html#add-double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   351
            "Add.html#add-double-byte-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   352
            "Add.html#add-double-double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   353
            "Add.html#add-double-java.lang.Double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   354
            "Add.html#add-float-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   355
            "Add.html#add-float-int-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   356
            "Add.html#add-int-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   357
            "Add.html#add-int-float-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   358
            "Add.html#add-java.lang.Double-",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   359
            "Add.html#add-java.lang.Integer-"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   360
        };
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   361
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   362
        static String expectedPackageOrdering[] = {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   363
            "\"add0/package-summary.html\">add0</a> - package add0",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   364
            "\"add0/add/package-summary.html\">add0.add</a> - package add0.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   365
            "\"add0/add/add/package-summary.html\">add0.add.add</a> - package add0.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   366
            "\"add0/add/add/add/package-summary.html\">add0.add.add.add</a> - package add0.add.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   367
            "\"add1/package-summary.html\">add1</a> - package add1",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   368
            "\"add1/add/package-summary.html\">add1.add</a> - package add1.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   369
            "\"add1/add/add/package-summary.html\">add1.add.add</a> - package add1.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   370
            "\"add1/add/add/add/package-summary.html\">add1.add.add.add</a> - package add1.add.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   371
            "\"add2/package-summary.html\">add2</a> - package add2",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   372
            "\"add2/add/package-summary.html\">add2.add</a> - package add2.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   373
            "\"add2/add/add/package-summary.html\">add2.add.add</a> - package add2.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   374
            "\"add2/add/add/add/package-summary.html\">add2.add.add.add</a> - package add2.add.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   375
            "\"add3/package-summary.html\">add3</a> - package add3",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   376
            "\"add3/add/package-summary.html\">add3.add</a> - package add3.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   377
            "\"add3/add/add/package-summary.html\">add3.add.add</a> - package add3.add.add",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   378
            "\"add3/add/add/add/package-summary.html\">add3.add.add.add</a> - package add3.add.add.add"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   379
        };
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
   380
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   381
        void run() throws IOException {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   382
            final String clsname = "Add";
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   383
            List<String> cmdArgs = new ArrayList();
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   384
            cmdArgs.add("-d");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   385
            cmdArgs.add("out-2");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   386
            cmdArgs.add("-sourcepath");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   387
            cmdArgs.add("src");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   388
            cmdArgs.add("-package");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   389
            System.out.println("STRESS_MODE: " + STRESS_MODE);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   390
            emitFile(null, clsname, STRESS_MODE);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   391
            for (int width = 0; width < MAX_PACKAGES; width++) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   392
                String wpkgname = "add" + width;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   393
                String dpkgname = wpkgname;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   394
                emitFile(wpkgname, clsname, ListOrder.NONE); // list as-is
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   395
                cmdArgs.add(wpkgname);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   396
                for (int depth = 1; depth < MAX_SUBPACKAGES_DEPTH; depth++) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   397
                    dpkgname = dpkgname + ".add";
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   398
                    emitFile(dpkgname, clsname, STRESS_MODE);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   399
                    cmdArgs.add(dpkgname);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   400
                }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   401
            }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   402
            File srcDir = new File(new File("."), "src");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   403
            cmdArgs.add(new File(srcDir, clsname + ".java").getPath());
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   404
            tester.javadoc(cmdArgs.toArray(new String[cmdArgs.size()]));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   405
            tester.checkExit(Exit.OK);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   406
            tester.checkOrder("index-all.html", composeTestVectors());
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   407
            tester.checkOrder("add0/add/package-tree.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   408
                    "<a href=\"../../add0/add/Add.add.html\" title=\"enum in add0.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   409
                    "<a href=\"../../add0/add/Add.ADD.html\" title=\"enum in add0.add\">");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   410
            tester.checkOrder("overview-tree.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   411
                    "<a href=\"Add.add.html\" title=\"enum in &lt;Unnamed&gt;\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   412
                    "<a href=\"add0/Add.add.html\" title=\"enum in add0\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   413
                    "<a href=\"add0/add/Add.add.html\" title=\"enum in add0.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   414
                    "<a href=\"add0/add/add/Add.add.html\" title=\"enum in add0.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   415
                    "<a href=\"add0/add/add/add/Add.add.html\" title=\"enum in add0.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   416
                    "<a href=\"add1/Add.add.html\" title=\"enum in add1\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   417
                    "<a href=\"add1/add/Add.add.html\" title=\"enum in add1.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   418
                    "<a href=\"add1/add/add/Add.add.html\" title=\"enum in add1.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   419
                    "<a href=\"add1/add/add/add/Add.add.html\" title=\"enum in add1.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   420
                    "<a href=\"add2/Add.add.html\" title=\"enum in add2\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   421
                    "<a href=\"add2/add/Add.add.html\" title=\"enum in add2.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   422
                    "<a href=\"add2/add/add/Add.add.html\" title=\"enum in add2.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   423
                    "<a href=\"add2/add/add/add/Add.add.html\" title=\"enum in add2.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   424
                    "<a href=\"add3/Add.add.html\" title=\"enum in add3\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   425
                    "<a href=\"add3/add/Add.add.html\" title=\"enum in add3.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   426
                    "<a href=\"add3/add/add/Add.add.html\" title=\"enum in add3.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   427
                    "<a href=\"add3/add/add/add/Add.add.html\" title=\"enum in add3.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   428
                    "<a href=\"Add.ADD.html\" title=\"enum in &lt;Unnamed&gt;\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   429
                    "<a href=\"add0/Add.ADD.html\" title=\"enum in add0\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   430
                    "<a href=\"add0/add/Add.ADD.html\" title=\"enum in add0.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   431
                    "<a href=\"add0/add/add/Add.ADD.html\" title=\"enum in add0.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   432
                    "<a href=\"add0/add/add/add/Add.ADD.html\" title=\"enum in add0.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   433
                    "<a href=\"add1/Add.ADD.html\" title=\"enum in add1\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   434
                    "<a href=\"add1/add/Add.ADD.html\" title=\"enum in add1.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   435
                    "<a href=\"add1/add/add/Add.ADD.html\" title=\"enum in add1.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   436
                    "<a href=\"add1/add/add/add/Add.ADD.html\" title=\"enum in add1.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   437
                    "<a href=\"add2/Add.ADD.html\" title=\"enum in add2\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   438
                    "<a href=\"add2/add/Add.ADD.html\" title=\"enum in add2.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   439
                    "<a href=\"add2/add/add/Add.ADD.html\" title=\"enum in add2.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   440
                    "<a href=\"add2/add/add/add/Add.ADD.html\" title=\"enum in add2.add.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   441
                    "<a href=\"add3/Add.ADD.html\" title=\"enum in add3\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   442
                    "<a href=\"add3/add/Add.ADD.html\" title=\"enum in add3.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   443
                    "<a href=\"add3/add/add/Add.ADD.html\" title=\"enum in add3.add.add\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   444
                    "<a href=\"add3/add/add/add/Add.ADD.html\" title=\"enum in add3.add.add.add\">");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   445
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   446
            tester.checkOrder("overview-frame.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   447
                    "<a href=\"package-frame.html\" target=\"packageFrame\">&lt;unnamed package&gt;</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   448
                    "<a href=\"add0/package-frame.html\" target=\"packageFrame\">add0</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   449
                    "<a href=\"add0/add/package-frame.html\" target=\"packageFrame\">add0.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   450
                    "<a href=\"add0/add/add/package-frame.html\" target=\"packageFrame\">add0.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   451
                    "<a href=\"add0/add/add/add/package-frame.html\" target=\"packageFrame\">add0.add.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   452
                    "<a href=\"add1/package-frame.html\" target=\"packageFrame\">add1</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   453
                    "<a href=\"add1/add/package-frame.html\" target=\"packageFrame\">add1.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   454
                    "<a href=\"add1/add/add/package-frame.html\" target=\"packageFrame\">add1.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   455
                    "<a href=\"add1/add/add/add/package-frame.html\" target=\"packageFrame\">add1.add.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   456
                    "<a href=\"add2/package-frame.html\" target=\"packageFrame\">add2</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   457
                    "<a href=\"add2/add/package-frame.html\" target=\"packageFrame\">add2.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   458
                    "<a href=\"add2/add/add/package-frame.html\" target=\"packageFrame\">add2.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   459
                    "<a href=\"add2/add/add/add/package-frame.html\" target=\"packageFrame\">add2.add.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   460
                    "<a href=\"add3/package-frame.html\" target=\"packageFrame\">add3</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   461
                    "<a href=\"add3/add/package-frame.html\" target=\"packageFrame\">add3.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   462
                    "<a href=\"add3/add/add/package-frame.html\" target=\"packageFrame\">add3.add.add</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   463
                    "<a href=\"add3/add/add/add/package-frame.html\" target=\"packageFrame\">add3.add.add.add</a></li>");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   464
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   465
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   466
        void emitFile(String pkgname, String clsname, ListOrder order) throws IOException {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   467
            File srcDir = new File("src");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   468
            File outDir = pkgname == null
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   469
                    ? srcDir
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   470
                    : new File(srcDir, pkgname.replace(".", File.separator));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   471
            File outFile = new File(outDir, clsname + ".java");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   472
            outDir.mkdirs();
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   473
            List<String> scratch = new ArrayList<>(Arrays.asList(contents));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   474
            switch (order) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   475
                case SHUFFLE:
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   476
                    Collections.shuffle(scratch);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   477
                    break;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   478
                case REVERSE:
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   479
                    Collections.reverse(scratch);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   480
                    break;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   481
                default:
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
   482
                // leave list as-is
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   483
            }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   484
            // insert the header
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   485
            scratch.add(0, "public class " + clsname + " {");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   486
            if (pkgname != null) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   487
                scratch.add(0, "package " + pkgname + ";");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   488
            }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   489
            // append the footer
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   490
            scratch.add("}");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   491
            Files.write(outFile.toPath(), scratch, CREATE, TRUNCATE_EXISTING);
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
   492
        }
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   493
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   494
        String[] composeTestVectors() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   495
            List<String> testList = new ArrayList<>();
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   496
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   497
            for (String x : expectedEnumOrdering) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   498
                testList.add(x.replace("REPLACE_ME", "&lt;Unnamed&gt;"));
43570
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   499
            }
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   500
            for (int i = 0; i < MAX_PACKAGES; i++) {
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   501
                String wpkg = "add" + i;
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   502
                for (String x : expectedEnumOrdering) {
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   503
                    testList.add(wpkg + "/" + x.replace("REPLACE_ME", wpkg));
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   504
                }
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   505
                String dpkg = wpkg;
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   506
                for (int j = 1; j < MAX_SUBPACKAGES_DEPTH; j++) {
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   507
                    dpkg = dpkg + "/" + "add";
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   508
                    for (String x : expectedEnumOrdering) {
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   509
                        testList.add(dpkg + "/" + x.replace("REPLACE_ME", pathToPackage(dpkg)));
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   510
                    }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   511
                }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   512
            }
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
   513
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   514
            for (String x : expectedMethodOrdering) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   515
                testList.add(x);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   516
                for (int i = 0; i < MAX_PACKAGES; i++) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   517
                    String wpkg = "add" + i;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   518
                    testList.add(wpkg + "/" + x);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   519
                    String dpkg = wpkg;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   520
                    for (int j = 1; j < MAX_SUBPACKAGES_DEPTH; j++) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   521
                        dpkg = dpkg + "/" + "add";
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   522
                        testList.add(dpkg + "/" + x);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   523
                    }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   524
                }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   525
            }
43570
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   526
            testList.addAll(Arrays.asList(expectedPackageOrdering));
c7b68caf3ab4 8169813: The index pages are sorted in a confusing manner
bpatel
parents: 42000
diff changeset
   527
            testList.addAll(Arrays.asList(expectedFieldOrdering));
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   528
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   529
            return testList.toArray(new String[testList.size()]);
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   530
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   531
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   532
        String pathToPackage(String in) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   533
            return in.replace("/", ".");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   534
        }
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   535
    }
25004
b33effe4f252 8042829: [javadoc] index-file output is not sorted correctly
ksrini
parents: 24399
diff changeset
   536
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   537
    static class IndexTypeClusteringTest {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   538
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   539
        private final JavadocTester tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   540
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   541
        IndexTypeClusteringTest(JavadocTester tester) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   542
            this.tester = tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   543
        }
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   544
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   545
        void run() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   546
            tester.javadoc("-d", "out-3",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   547
                    "-sourcepath", tester.testSrc("src-2"),
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   548
                    "-use",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   549
                    "a",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   550
                    "b",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   551
                    "e",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   552
                    "something");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   553
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   554
            tester.checkExit(Exit.OK);
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   555
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   556
            tester.checkOrder("index-all.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   557
                    "something</a> - package something</dt>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   558
                    "something</span></a> - Class in",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   559
                    "something</span></a> - Enum in",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   560
                    "something</span></a> - Interface in",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   561
                    "something</span></a> - Annotation Type in",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   562
                    "something</a></span> - Variable in class",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   563
                    "something()</a></span> - Constructor",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   564
                    "something()</a></span> - Method in class a.<a href=\"a/A.html\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   565
                    "something()</a></span> - Method in class a.<a href=\"a/something.html\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   566
                    "something()</a></span> - Method in class something.<a href=\"something/J.html\"");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   567
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   568
    }
25449
3c14a2e16bd6 8049393: [javadoc] parameters are not sorted correctly
ksrini
parents: 25300
diff changeset
   569
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   570
    static class TypeElementMemberOrderingTest {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   571
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   572
        final JavadocTester tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   573
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   574
        TypeElementMemberOrderingTest(JavadocTester tester) {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   575
            this.tester = tester;
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   576
        }
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   577
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   578
        void run() {
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   579
            tester.javadoc("-d", "out-5",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   580
                    "-javafx",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   581
                    "-sourcepath", tester.testSrc(new File(".").getPath()),
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   582
                    "pkg5"
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   583
            );
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   584
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   585
            tester.checkExit(Exit.OK);
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   586
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   587
            tester.checkOrder("pkg5/AnnoFieldTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   588
                    "<h3>Field Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   589
                    "<pre>static final&nbsp;int&nbsp;one</pre>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   590
                    "<pre>static final&nbsp;int&nbsp;two</pre>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   591
                    "<pre>static final&nbsp;int&nbsp;three</pre>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   592
                    "<pre>static final&nbsp;int&nbsp;four</pre>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   593
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   594
            tester.checkOrder("pkg5/AnnoOptionalTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   595
                    "<h3>Optional Element Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   596
                    "<a href=\"../pkg5/AnnoOptionalTest.html#four--\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   597
                    "<a href=\"../pkg5/AnnoOptionalTest.html#one--\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   598
                    "<a href=\"../pkg5/AnnoOptionalTest.html#three--\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   599
                    "<a href=\"../pkg5/AnnoOptionalTest.html#two--\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   600
                    "<h3>Element Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   601
                    "<h4>one</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   602
                    "<h4>two</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   603
                    "<h4>three</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   604
                    "<h4>four</h4>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   605
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   606
            tester.checkOrder("pkg5/AnnoRequiredTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   607
                    "<h3>Required Element Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   608
                    "<a href=\"../pkg5/AnnoRequiredTest.html#four--\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   609
                    "<a href=\"../pkg5/AnnoRequiredTest.html#one--\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   610
                    "<a href=\"../pkg5/AnnoRequiredTest.html#three--\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   611
                    "<a href=\"../pkg5/AnnoRequiredTest.html#two--\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   612
                    "<h3>Element Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   613
                    "<h4>one</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   614
                    "<h4>two</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   615
                    "<h4>three</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   616
                    "<h4>four</h4>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   617
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   618
            tester.checkOrder("pkg5/CtorTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   619
                    "<h3>Constructor Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   620
                    "<a href=\"../pkg5/CtorTest.html#CtorTest-int-\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   621
                    "<a href=\"../pkg5/CtorTest.html#CtorTest-int-int-\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   622
                    "<a href=\"../pkg5/CtorTest.html#CtorTest-int-int-int-\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   623
                    "<a href=\"../pkg5/CtorTest.html#CtorTest-int-int-int-int-\"",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   624
                    "<h3>Constructor Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   625
                    "<a name=\"CtorTest-int-int-int-int-\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   626
                    "<a name=\"CtorTest-int-int-int-\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   627
                    "<a name=\"CtorTest-int-int-\">",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   628
                    "<a name=\"CtorTest-int-\">");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   629
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   630
            tester.checkOrder("pkg5/EnumTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   631
                    "<h3>Enum Constant Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   632
                    "<a href=\"../pkg5/EnumTest.html#FOUR\">FOUR</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   633
                    "<a href=\"../pkg5/EnumTest.html#ONE\">ONE</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   634
                    "<a href=\"../pkg5/EnumTest.html#THREE\">THREE</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   635
                    "<a href=\"../pkg5/EnumTest.html#TWO\">TWO</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   636
                    "<h3>Enum Constant Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   637
                    "<h4>ONE</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   638
                    "<h4>TWO</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   639
                    "<h4>THREE</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   640
                    "<h4>FOUR</h4>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   641
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   642
            tester.checkOrder("pkg5/FieldTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   643
                    "<h3>Field Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   644
                    "<a href=\"../pkg5/FieldTest.html#four\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   645
                    "<a href=\"../pkg5/FieldTest.html#one\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   646
                    "<a href=\"../pkg5/FieldTest.html#three\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   647
                    "<a href=\"../pkg5/FieldTest.html#two\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   648
                    "<h3>Field Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   649
                    "<h4>one</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   650
                    "<h4>two</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   651
                    "<h4>three</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   652
                    "<h4>four</h4>");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   653
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   654
            tester.checkOrder("pkg5/IntfTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   655
                    "<h3>Method Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   656
                    "<a href=\"../pkg5/IntfTest.html#four--\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   657
                    "<a href=\"../pkg5/IntfTest.html#one--\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   658
                    "<a href=\"../pkg5/IntfTest.html#three--\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   659
                    "<a href=\"../pkg5/IntfTest.html#two--\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   660
                    "<h3>Method Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   661
                    "<h4>one</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   662
                    "<h4>two</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   663
                    "<h4>three</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   664
                    "<h4>four</h4>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   665
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   666
            tester.checkOrder("pkg5/MethodTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   667
                    "<h3>Method Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   668
                    "<a href=\"../pkg5/MethodTest.html#four--\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   669
                    "<a href=\"../pkg5/MethodTest.html#one--\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   670
                    "<a href=\"../pkg5/MethodTest.html#three--\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   671
                    "<a href=\"../pkg5/MethodTest.html#two--\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   672
                    "<h3>Method Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   673
                    "<h4>one</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   674
                    "<h4>two</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   675
                    "<h4>three</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   676
                    "<h4>four</h4>");
37752
4243173b58db 8155061: javadoc incorrectly sorted items in All Classes list and Index files
ksrini
parents: 36526
diff changeset
   677
42000
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   678
            tester.checkOrder("pkg5/PropertyTest.html",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   679
                    "<h3>Property Summary</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   680
                    "<a href=\"../pkg5/PropertyTest.html#fourProperty\">four</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   681
                    "<a href=\"../pkg5/PropertyTest.html#oneProperty\">one</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   682
                    "<a href=\"../pkg5/PropertyTest.html#threeProperty\">three</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   683
                    "<a href=\"../pkg5/PropertyTest.html#twoProperty\">two</a>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   684
                    "<h3>Property Detail</h3>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   685
                    "<h4>oneProperty</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   686
                    "<h4>twoProperty</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   687
                    "<h4>threeProperty</h4>",
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   688
                    "<h4>fourProperty</h4>");
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   689
        }
8b7412f7eecd 8167967: javadoc should identify the ordinal value of enum constants
ksrini
parents: 40511
diff changeset
   690
    }
24220
eb213562268d 8039410: [javadoc] fix class-use items to be deterministic and index ordering
ksrini
parents:
diff changeset
   691
}