test/jdk/com/sun/jdi/EvalArraysAsList.sh
changeset 51213 24c4780f69a5
parent 47216 71c04702a3d5
equal deleted inserted replaced
51212:a138b5fe288d 51213:24c4780f69a5
     1 #!/bin/sh
     1 #!/bin/sh
     2 #
     2 #
     3 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     7 # under the terms of the GNU General Public License version 2 only, as
     8 # published by the Free Software Foundation.
     8 # published by the Free Software Foundation.
    37 {
    37 {
    38     cat <<EOF > $classname.java.1
    38     cat <<EOF > $classname.java.1
    39 public class $classname {
    39 public class $classname {
    40     public static void main(String[] args) {
    40     public static void main(String[] args) {
    41         java.util.List<Object> l = java.util.Arrays.asList(null, "a");
    41         java.util.List<Object> l = java.util.Arrays.asList(null, "a");
    42         System.out.println("java.util.Arrays.asList(null, \"a\") returns: " + l);
    42         System.out.println("java.util.Arrays.asList(null, \\"a\\") returns: " + l);
    43         return;    // @1 breakpoint
    43         return;    // @1 breakpoint
    44     }
    44     }
    45 }
    45 }
    46 EOF
    46 EOF
    47 }
    47 }