Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8073652

Notion of SAM class should be removed in section 2.9 of the nashorn guide

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 8u31
    • docs
    • x86
    • windows_8

      A DESCRIPTION OF THE PROBLEM :
      This section still uses the notion of a "SAM class". However, with the release of Java 8, this notion was formalized as "functional interface".

      So all the occurrences of the notion of "SAM class" should be removed & use "functional interface" instead, preferably by including a link to the java.lang.FunctionalInterface annotation [1].

      [1] http://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html


      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/api.html#CDEDGBIF

            rgallard Raymond Gallardo
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: