nashorn/test/script/basic/javaclassoverrides.js.EXPECTED
author thartmann
Mon, 02 Jun 2014 08:07:29 +0200
changeset 24923 9631f7d691dc
parent 22669 75563515567f
permissions -rw-r--r--
8034812: remove IDX_INIT macro hack in Node class Summary: The IDX_INIT macro used by Node::Node(...) to retrieve the Compile object is removed and replaced by a call to Compile::current(). The Node constructor, new operator and all calls to it are adapted accordingly. Reviewed-by: kvn, jrose, iveresov, goetz
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
22669
75563515567f 8032681: Issues with Nashorn
attila
parents: 16777
diff changeset
     4
r1.class !== r2.class: true
75563515567f 8032681: Issues with Nashorn
attila
parents: 16777
diff changeset
     5
r2.class !== r3.class: true
16777
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
22669
75563515567f 8032681: Issues with Nashorn
attila
parents: 16777
diff changeset
     9
(new (Java.extend(ExtendsList)){}).size() = 0