jdk/test/com/sun/jdi/redefineMethod/Different_RedefineSubTarg.java
author jjg
Thu, 22 May 2008 15:51:41 -0700
changeset 655 1ebc7ce89018
parent 2 90ce3da70b43
permissions -rw-r--r--
6705945: com.sun.tools.javac.zip files do not have valid copyright Reviewed-by: mcimadamore
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
}