< prev index next >

test/com/sun/jdi/JdbVarargsTest.sh

Print this page
rev 12339 : 8075658: Mark intermittently failuring core-svc tests


  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 #  @test
  27 #  @bug 4870984
  28 #  @summary  JPDA: Add support for RFE 4856541 - varargs
  29 #
  30 #  @author jjh
  31 #

  32 #  @run shell JdbVarargsTest.sh
  33 
  34 classname=JdbVarargsTest
  35 createJavaFile()
  36 {
  37     cat <<EOF > $classname.java.1
  38 public class $classname {
  39    
  40     public static void main(String args[]) {
  41         int ii = 0; // @1 breakpoint
  42 
  43         // Call the varargs method so the bkpt will be hit
  44         varString(new String[] {"a", "b"});
  45     }
  46 
  47     static String varString(String... ss) {
  48         if (ss == null) {
  49             return "-null-";
  50         }
  51         if (ss.length == 0) {




  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 #  @test
  27 #  @bug 4870984
  28 #  @summary  JPDA: Add support for RFE 4856541 - varargs
  29 #
  30 #  @author jjh
  31 #
  32 #  @key intermittent
  33 #  @run shell JdbVarargsTest.sh
  34 
  35 classname=JdbVarargsTest
  36 createJavaFile()
  37 {
  38     cat <<EOF > $classname.java.1
  39 public class $classname {
  40    
  41     public static void main(String args[]) {
  42         int ii = 0; // @1 breakpoint
  43 
  44         // Call the varargs method so the bkpt will be hit
  45         varString(new String[] {"a", "b"});
  46     }
  47 
  48     static String varString(String... ss) {
  49         if (ss == null) {
  50             return "-null-";
  51         }
  52         if (ss.length == 0) {


< prev index next >