test/jdk/java/nio/Buffer/genBasic.sh
changeset 53648 6d37b8ec36fa
parent 52147 435467bce14e
--- a/test/jdk/java/nio/Buffer/genBasic.sh	Tue Feb 05 16:46:49 2019 -0500
+++ b/test/jdk/java/nio/Buffer/genBasic.sh	Tue Feb 05 14:36:50 2019 -0800
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 #
-# Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,9 @@
 javac -d . ../../../../../make/jdk/src/classes/build/tools/spp/Spp.java
 
 gen() {
-    java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 <Basic-X.java.template >Basic$2.java
+    out=Basic$2.java
+    rm -f $out
+    java build.tools.spp.Spp -K$1 -Dtype=$1 -DType=$2 -DFulltype=$3 -iBasic-X.java.template -o$out
 }
 
 gen byte Byte Byte