changeset 1304:f0b1680a8c34

8081813: JSONListAdapter should delegate its [[DefaultValue]] to wrapped object Reviewed-by: lagergren, sundar
author attila
date Wed, 03 Jun 2015 16:28:57 +0200
parents 4da1c371efcb
children dd6dd848b854
files src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/JSONListAdapter.java
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/JSONListAdapter.java	Wed Jun 03 18:44:12 2015 +0530
+++ b/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/JSONListAdapter.java	Wed Jun 03 16:28:57 2015 +0200
@@ -148,4 +148,14 @@
     public boolean isArray() {
         return obj.isArray();
     }
+
+    @Override @Deprecated
+    public double toNumber() {
+        return obj.toNumber();
+    }
+
+    @Override
+    public Object getDefaultValue(Class<?> hint) throws UnsupportedOperationException {
+        return obj.getDefaultValue(hint);
+    }
 }