nashorn/test/script/basic/JDK-8020324.js.EXPECTED
author martin
Wed, 10 Dec 2014 09:23:00 -0800
changeset 28057 1a47ceecdba5
parent 18876 ada98218aaae
child 28438 f164fc2618a0
permissions -rw-r--r--
8065804: JEP 171: Clarifications/corrections for fence intrinsics Reviewed-by: dholmes, shade, dl, psandoz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18876
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     1
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     2
==== Two-way read-write instance field ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     3
obj1.publicInt = 13: 13
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     4
bean.publicInt: 13
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     5
bean.publicInt = 15: 15
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     6
obj1.publicInt: 15
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     7
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     8
==== Read only public instance field ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
     9
obj1.publicFinalInt: 42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    10
obj1.publicFinalInt = 16: 16
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    11
obj1.publicFinalInt: 42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    12
bean.publicFinalInt: 42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    13
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    14
==== Two-way read-write instance property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    15
obj1.readWrite = 17: 17
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    16
bean.readWrite: 17
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    17
bean.readWrite = 18: 18
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    18
obj1.readWrite: 18
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    19
obj1.getReadWrite(): 18
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    20
obj1.setReadWrite(19): null
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    21
obj1.readWrite: 19
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    22
bean.readWrite: 19
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    23
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    24
==== Read only instance property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    25
obj1.readOnly: 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    26
obj1.readOnly = 20: 20
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    27
obj1.readOnly: 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    28
obj1.getReadOnly(): 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    29
bean.getReadOnly(): 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    30
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    31
==== Write only instance property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    32
obj1.writeOnly = 21: 21
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    33
obj1.writeOnly: undefined
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    34
bean.writeOnly: undefined
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    35
bean.peekWriteOnly(): 21
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    36
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    37
==== Two-way read-write public static field ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    38
obj2.publicStaticInt = 22: 22
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    39
PropertyBind.publicStaticInt: 22
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    40
PropertyBind.publicStaticInt = 23: 23
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    41
obj2.publicStaticInt: 23
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    43
==== Read only public static field ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    44
obj2.publicStaticFinalInt: 2112
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    45
obj2.publicStaticFinalInt = 24: 24
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    46
obj2.publicStaticFinalInt: 2112
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    47
PropertyBind.publicStaticFinalInt: 2112
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    48
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    49
==== Two-way read-write static property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    50
obj2.staticReadWrite = 25: 25
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    51
PropertyBind.staticReadWrite: 25
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    52
PropertyBind.staticReadWrite = 26: 26
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    53
obj2.staticReadWrite: 26
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    54
obj2.getStaticReadWrite(): 26
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    55
obj2.setStaticReadWrite(27): null
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    56
obj2.staticReadWrite: 27
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    57
PropertyBind.staticReadWrite: 27
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    58
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    59
==== Read only static property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    60
obj2.staticReadOnly: 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    61
obj2.staticReadOnly = 28: 28
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    62
obj2.staticReadOnly: 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    63
obj2.getStaticReadOnly(): 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    64
PropertyBind.getStaticReadOnly(): 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    65
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    66
==== Write only static property ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    67
obj2.staticWriteOnly = 29: 29
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    68
obj2.staticWriteOnly: undefined
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    69
PropertyBind.staticWriteOnly: undefined
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    70
PropertyBind.peekStaticWriteOnly(): 29
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    71
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    72
==== Sanity check to ensure property values remained what they were ====
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    73
obj1.publicInt: 15
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    74
bean.publicInt: 15
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    75
obj1.publicFinalInt: 42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    76
bean.publicFinalInt: 42
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    77
obj1.readWrite: 19
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    78
bean.readWrite: 19
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    79
obj1.readOnly: 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    80
bean.readOnly: 123
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    81
bean.peekWriteOnly(): 21
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    82
obj2.publicStaticInt: 23
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    83
PropertyBind.publicStaticInt: 23
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    84
obj2.publicStaticFinalInt: 2112
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    85
PropertyBind.publicStaticFinalInt: 2112
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    86
obj2.staticReadWrite: 27
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    87
PropertyBind.staticReadWrite: 27
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    88
obj2.staticReadOnly: 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    89
PropertyBind.staticReadOnly: 1230
ada98218aaae 8020324: Implement Object.bindProperties(target, source) for beans
attila
parents:
diff changeset
    90
PropertyBind.peekStaticWriteOnly(): 29