test/script/basic/JDK-8049086.js.EXPECTED

Fri, 20 Feb 2015 15:47:28 +0100

author
attila
date
Fri, 20 Feb 2015 15:47:28 +0100
changeset 1250
9ee1fc3f6136
parent 963
e2497b11a021
child 1538
82a41eb20242
permissions
-rw-r--r--

8072426: Can't compare Java objects to strings or numbers
Reviewed-by: hannesw, lagergren, sundar

     1 println is java method? true
     2 println is script function? false
     3 getProperty is java method? true
     4 getProperty is script function? false
     5 File is java method? true
     6 File is script function? false
     7 eval is script function? true
     8 eval is java method? false
     9 hello is script function? true
    10 hello is java method? false
    11 out is script object? false
    12 System is script object? false
    13 Object is script object? true
    14 {} is script object? true
    15 /foo/ is script object? true
    16 java.awt.Color is java function? true
    17 java.lang.Runnable instance is java function? true
    18 eval is java function? false
    19 println is java function? true
    20 getProperty is java function? true
    21 callable JSObject is function? true
    22 Non callable JSObject is function? false
    23 lock is java object? true
    24 eval is java object? false
    25 {} is java object? false
    26 /foo/ is java object? false
    27 [] is java object? false
    28 java.io.File is java object? true
    29 about to wait..
    30 new thread
    31 notifying..
    32 done waiting!
    33 about to wait..
    34 new thread
    35 notifying..
    36 done waiting!
    37 TypeError: 232 is not a function
    38 TypeError: 232 is not a function
    39 TypeError: [object Object] is not a function
    40 TypeError: [object Object] is not a function
    41 TypeError: [object Array] is not a function
    42 TypeError: [object Array] is not a function
    43 TypeError: hello is not a function
    44 TypeError: hello is not a function
    45 TypeError: null is not a function
    46 TypeError: null is not a function
    47 TypeError: undefined is not a function
    48 TypeError: undefined is not a function

mercurial