< prev index next >

test/java/lang/invoke/VarHandles/generate-vh-tests.sh

Print this page

        

@@ -13,17 +13,17 @@
 do
   Type="$(tr '[:lower:]' '[:upper:]' <<< ${type:0:1})${type:1}"
   args="-K$type -Dtype=$type -DType=$Type"
 
   case $type in
-    String|int|long)
+    String|boolean|byte|short|char|int|long)
       args="$args -KCAS"
       ;;
   esac
 
   case $type in
-    int|long)
+    byte|short|char|int|long)
       args="$args -KAtomicAdd"
       ;;
   esac
 
   wrong_primitive_type=boolean

@@ -34,33 +34,33 @@
       value2=false
       value3=false
       wrong_primitive_type=int
       ;;
     byte)
-      value1=(byte)1
-      value2=(byte)2
-      value3=(byte)3
+      value1=(byte)0x01
+      value2=(byte)0x23
+      value3=(byte)0x45
       ;;
     short)
-      value1=(short)1
-      value2=(short)2
-      value3=(short)3
+      value1=(short)0x0123
+      value2=(short)0x4567
+      value3=(short)0x89AB
       ;;
     char)
-      value1=\'a\'
-      value2=\'b\'
-      value3=\'c\'
+      value1=\'\\\\u0123\'
+      value2=\'\\\\u4567\'
+      value3=\'\\\\u89AB\'
       ;;
     int)
-      value1=1
-      value2=2
-      value3=3
+      value1=0x01234567
+      value2=0x89ABCDEF
+      value3=0xCAFEBABE
       ;;
     long)
-      value1=1L
-      value2=2L
-      value3=3L
+      value1=0x0123456789ABCDEFL
+      value2=0xCAFEBABECAFEBABEL
+      value3=0xDEADBEEFDEADBEEFL
       ;;
     float)
       value1=1.0f
       value2=2.0f
       value3=3.0f
< prev index next >