nashorn/test/script/basic/javaclassoverrides.js.EXPECTED
author hannesw
Thu, 11 Apr 2013 12:16:39 +0200
changeset 16943 a1b9b7970813
parent 16777 207a993adb9a
child 22669 75563515567f
permissions -rw-r--r--
8011980: Allow NUL character in character class Reviewed-by: sundar, lagergren
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16777
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     1
R1.run() invoked
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     2
R2.run() invoked
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     3
r3.run() invoked
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     4
r1.class != r2.class: true
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     5
r2.class == r3.class: true
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     6
Got exception: java.lang.UnsupportedOperationException
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     7
Got exception: java.lang.UnsupportedOperationException
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     8
(new ExtendsList).size() = 0
207a993adb9a 8011544: Allow subclassing Java classes from script without creating instances
attila
parents:
diff changeset
     9
(new ExtendsList(){}).size() = 0