Deprecated List (Nashorn API )
Date: 2026-04-22

# Deprecated API

## Contents

- Deprecated Methods

- Deprecated Methods
  Method and Description
  jdk.nashorn.api.scripting.ScriptObjectMirror.toNumber()
  jdk.nashorn.api.scripting.JSObject.toNumber() use `getDefaultValue(JSObject, Class)` with `Number` hint instead.
  jdk.nashorn.api.scripting.AbstractJSObject.toNumber() use `getDefaultValue(Class)` with `Number` hint instead.

Copyright © 2014, 2026, Oracle and/or its affiliates. All rights reserved.