jdk/test/com/sun/jdi/redefineMethod/Different_RedefineSubTarg.java
author dcubed
Mon, 23 Nov 2009 10:29:33 -0700
changeset 4325 38a035021ba1
parent 2 90ce3da70b43
permissions -rw-r--r--
6903102: 3/3 fixes in nightly testing version of ShellScaffold.sh need to be committed Summary: Merge Jim's ShellScaffold.sh fixes with Tim's ShellScaffold.sh fixes. Reviewed-by: tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/* /nodynamiccopyright/ */ class RedefineSubTarg {        // 1 - do not change line numbers
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
    // add two lines
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
    // to check line number tables
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
    void top() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
        return;                // 5
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
    void nemcp2(int eights) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
        eights = 88;
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
        top();                 // 9
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
    void nemcp1() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
        // reserve this line
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
        nemcp2(888);           // 13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
    void emcp2() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
        nemcp1();              // 16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
        return;                // 17
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
    void emcp1(int whoseArg) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
        int parawham = 12;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
        emcp2();               // 21
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
        return;                // 22
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
    void bottom() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
        emcp1(56);             // 25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
        return;                // 26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
    static void stnemcp() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
        (new RedefineSubTarg()).bottom(); // 29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
                               // 30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
        Integer.toString(4);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    static void stemcp() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
        stnemcp();             // 34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        return;                // 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
}