JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module

JDK 11 jdk.scripting.nashorn.jmod is the JMOD file for JDK 11 Scripting Nashorn module.

JDK 11 Scripting Nashorn module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.scripting.nashorn.jmod.

JDK 11 Scripting Nashorn module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Scripting Nashorn module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.scripting.nashorn.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

jdk/nashorn/internal/objects/annotations/Optimistic.java

/*
 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package jdk.nashorn.internal.objects.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * The Optimistic annotation is used for builtins that can throw UnwarrantedOptimism
 * exception if they are wrong, whose callsite is optimistic and contains a program
 * point. Every optimistic builtin callsite needs to bind its programPoint to an
 * argument of the implementation at compile time
 *
 * Typical use case would be something like: if you want to do an optimistic "push" function
 * in NativeArray that takes an int, write
 *
 *  <pre>
 *  {@literal @}SpecializedFunction {@literal @}Optimistic
 *  public static int push(final Object self, final int x, final int programPoint) {
 *    try {
 *    //push code assuming that this is an int array
 *    //return new length of array, assuming it's an int
 *    } catch (ArrayWasWrong e) {
 *       //undo any array modifications
 *       throw new UnwarrantedOptimismExceptionArrayType(x, programPoint);
 *    } catch (LengthOverFlowed e) {
 *       //undo any array modifications
 *       throw new UnwarratnedOptimismExceptionArrayLength(uint32lenThatOverFlowed, programPoint)
 *    }
 *  }
 *  </pre>
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Optimistic {
    //empty
}

jdk/nashorn/internal/objects/annotations/Optimistic.java

 

Or download all of them as a single archive file:

File name: jdk.scripting.nashorn-11.0.1-src.zip
File size: 1390965 bytes
Release date: 2018-11-04
Download 

 

JDK 11 jdk.scripting.nashorn.shell.jmod - Scripting Nashorn Shell Module

JDK 11 jdk.rmic.jmod - RMI Compiler Tool

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-04-25, 107339👍, 0💬