changeset 303:f7369d2f8c41

Chapter 1.b: byteArray/byteBuffer tests should use proper OFF, not zero.
author shade
date Thu, 30 Jun 2016 13:38:25 +0300
parents 3b7412015819
children b937698bcb0c
files jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java	Fri Jun 24 22:19:56 2016 +0300
+++ b/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java	Thu Jun 30 13:38:25 2016 +0300
@@ -221,7 +221,7 @@
     private static Map<String, String> viewVars(Type type, String object, String pkg, String testName,
                                                 String bufferAllocateOp, ByteOrder bo) {
         Map<String, String> map = commonVars(type, object, pkg, testName);
-        map.put("index_para", ", 0");
+        map.put("index_para", ", OFF");
         map.put("unit_size", String.valueOf(type.sizeInArray));
         map.put("buffer_allocate", bufferAllocateOp);
         map.put("byte_order", bo.toString());