9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26
27 # @test
28 # @bug 6805864
29 # @summary Redefine an abstract class that is called via a concrete
30 # class and via two interface objects and verify that the right
31 # methods are called.
32 # @author Daniel D. Daugherty
33 #
34 # @key intermittent
35 # @run shell RedefineAbstractClass.sh
36
37 compileOptions=-g
38
39 # Uncomment this to see the JDI trace
40 #jdbOptions=-dbgtrace
41
42 createJavaFile()
43 {
44 cat <<EOF > $1.java.1
45
46 public class $1 {
47 public static void main(String[] args) {
48 System.out.println("This is RedefineAbstractClass");
49
50 MyConcreteClass foo = new MyConcreteClass();
51 // do the work once before redefine
52 foo.doWork();
53
54 System.out.println("stop here for redefine"); // @1 breakpoint
|
9 # published by the Free Software Foundation.
10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # version 2 for more details (a copy is included in the LICENSE file that
15 # accompanied this code).
16 #
17 # You should have received a copy of the GNU General Public License version
18 # 2 along with this work; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 #
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # or visit www.oracle.com if you need additional information or have any
23 # questions.
24 #
25
26
27 # @test
28 # @bug 6805864
29 # @key intermittent
30 # @summary Redefine an abstract class that is called via a concrete
31 # class and via two interface objects and verify that the right
32 # methods are called.
33 # @author Daniel D. Daugherty
34 #
35 # @run shell RedefineAbstractClass.sh
36
37 compileOptions=-g
38
39 # Uncomment this to see the JDI trace
40 #jdbOptions=-dbgtrace
41
42 createJavaFile()
43 {
44 cat <<EOF > $1.java.1
45
46 public class $1 {
47 public static void main(String[] args) {
48 System.out.println("This is RedefineAbstractClass");
49
50 MyConcreteClass foo = new MyConcreteClass();
51 // do the work once before redefine
52 foo.doWork();
53
54 System.out.println("stop here for redefine"); // @1 breakpoint
|