< prev index next >

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

Print this page
rev 55900 : 8207257: Add VarHandle access test for value type declared in ref type
Reviewed-by: tbd

*** 7,17 **** # Generates variable handle tests for objects and all primitive types # This is likely to be a temporary testing approach as it may be more # desirable to generate code using ASM which will allow more flexibility # in the kinds of tests that are generated. ! for type in boolean byte short char int long float double String do Type="$(tr '[:lower:]' '[:upper:]' <<< ${type:0:1})${type:1}" args="-K$type -Dtype=$type -DType=$Type" args="$args -KCAS" --- 7,17 ---- # Generates variable handle tests for objects and all primitive types # This is likely to be a temporary testing approach as it may be more # desirable to generate code using ASM which will allow more flexibility # in the kinds of tests that are generated. ! for type in boolean byte short char int long float double String Point do Type="$(tr '[:lower:]' '[:upper:]' <<< ${type:0:1})${type:1}" args="-K$type -Dtype=$type -DType=$Type" args="$args -KCAS"
*** 27,41 **** args="$args -KBitwise" ;; esac case $type in ! boolean|byte|short|char|int|long|float|double) args="$args -KValue" ;; esac wrong_primitive_type=boolean case $type in boolean) value1=true --- 27,47 ---- args="$args -KBitwise" ;; esac case $type in ! boolean|byte|short|char|int|long|float|double|Point) args="$args -KValue" ;; esac + case $type in + String|Point) + args="$args -KClass" + ;; + esac + wrong_primitive_type=boolean case $type in boolean) value1=true
*** 81,90 **** --- 87,101 ---- String) value1=\"foo\" value2=\"bar\" value3=\"baz\" ;; + Point) + value1="Point.getInstance(1,1)" + value2="Point.getInstance(2,2)" + value3="Point.getInstance(3,3)" + ;; esac args="$args -Dvalue1=$value1 -Dvalue2=$value2 -Dvalue3=$value3 -Dwrong_primitive_type=$wrong_primitive_type" echo $args
< prev index next >