JDK 8 Documentation - Developer Preview Release

September 9, 2013 | 6 minute read
Text Size 100%:


JDK 8 Documentation - Developer Preview Release

Java Development Kit Release 8 (JDK 8) Early Access Documentation, which helps developers explore features in the upcoming JDK 8 release, has been enhanced and updated. It comprises the Developer Guides, The Java Tutorials, and API
documentation
.

Download JDK 8 Early Access from JDK 8 Project.

Use the Project Feedback forum if you have suggestions for or encounter issues using JDK 8. If you find bugs in a release, submit them using the usual Java SE bug reporting channels.

The following describes where you can find documentation for specific JDK 8 enhancements:



Language and Library Enhancements

The following enhancements affect the Java language or the JDK library:

Lambda Expressions

Lambda expressions enable you to treat functionality as a method argument, or code as data. They also let you express instances of single-method classes more compactly. For example, you could use a lambda expression to perform a certain action on each element of a collection, when a process is completed, or when a process encounters an error. See the section Lambda Expressions in The Java Tutorials.

Method references enable you to refer to an existing method by name; they are compact, easy-to-read lambda expressions for methods that already have a name. See the section Method References in The Java Tutorials.

Bulk data expressions iterate over collections on your behalf, which enable you to write more concise and efficient code that process elements stored in collections. You specify lambda expressions as parameters for bulk data operations. This enables you to customize the behavior of a particular bulk data operation. The Collections trail will feature a new lesson about bulk data operations.


Parallel Array Sorting

JDK 7 introduced the Fork/Join framework for lightweight data parallelism, but users have to implement their own algorithms for simple/common tasks. In JDK 8, the Fork/Join framework is used to provide a standard implementation of parallel sorting for arrays.

For more information, see the Fork/Join and Arrays lessons in The Java Tutorials.


Annotations API Updates

Java SE 8 includes significant updates to the Annotations API:

  • It is now possible to apply the same annotation type more than once to the same declaration or type use. This feature is called repeating annotations.
  • It is now possible to apply an annotation anywhere a type is used, not just on a declaration. Used in conjunction with a pluggable type system, this feature allows for improved type checking of your code.

For more information, see the Annotations lesson in The Java Tutorials.


Base64 Encoding Schemes

The classes Base64, Base64.Encoder, and Base64.Decoder have been added. Applications that use base64 encoding schemes include those that use Multipurpose Internet Mail Extensions (MIME) and encode passwords for HTTP headers.

For more information, see Enhancements in Packages java.lang.* and java.util.*.

Security Enhancements

The following enhancements affect the security features in Java SE:


Server Name Indication Extension for Server Applications

The Server Name Indication (SNI) extension is a feature that extends the SSL/TLS protocols to indicate what server name the client is attempting to connect to during handshaking. In the Java Secure Socket Extension (JSSE) API for JDK 7, the SunJSSE provider has enabled SNI extension for client applications. JDK 8 supports the SNI extension for server applications as well. Servers can use the SNI to decide if specific SSLSocket or SSLEngine instances should accept a connection.

For information and examples, see the Server Name Indication (SNI) Extension section in the JSSE Reference Guide.


New PKIXRevocationChecker Class

The PKIXRevocationChecker class checks the revocation status of certificates with the X.509-based public-key infrastructure (PKIX) algorithm. It supports best-effort checking, single-certificate checking, and mechanism-specific options and parameters.

For more information, see the Java PKI API Programmer's Guide.


SHA-224 Message Digests

The cryptographic algorithms in JDK 8 have been enhanced with the SHA-224 variant of the SHA-2 family of message-digest implementations. For more information, see the following updated documentation:


Stronger Algorithms for Password-Based Encryption

Several AES password-based encryption (PBE) algorithms, such as PBEWithSHA256AndAES_128 and PBEWithSHA512AndAES_256, have been added to the SunJCE provider. For more information, see the Oracle Providers Documentation.


Enhanced Support for NSA Suite B Cryptography

This enhancement includes the addition of SHA-224, SHA-256, SHA-384, and SHA-512 message digests, as well as SHA224withDSA and SHA256withDSA signatures. Also, the keysize limit for the Diffie-Hellman algorithm has been increased from 1024 to 2048.

For more information, see the Oracle Providers Documentation and the Standard Algorithm Name Documentation.



Internationalization Enhancements

The following enhancements affect the internationalization features in Java SE:


Installation of Custom Resources as Extensions

The java.util.spi.ResourceBundleControlProvider interface enables you to change how the ResourceBundle.getBundle() method loads resource bundles. ResourceBundleControlProvider is a service provider interface (SPI). SPIs enable you to create extensible applications, which are those that you can extend easily without modifying their original code base.

For more information, see the Installing a Custom Resource Bundle as an Extension lesson in The Java Tutorials.


New Calendar and Locale APIs

New and updated Locale and Calendar APIs in JDK 8 support enhancements in the Unicode Common Locale Data Repository (CLDR) project. For a list of the APIs, see the Internationalization Enhancements page.



Tools Enhancements

The following enhancements affect the tools and utilities supplied with the JDK:


Pack200 Engine Updates

In Java SE 8, the Java class file format has been updated to reflect changes introduced by JSR 292: Supporting Dynamically Typed Languages on the Java Platform. Consequently, the Pack200 engine has been updated accordingly to ensure that class files are compressed effectively. In particular, the Pack200 engine now recognizes constant pool entries and new bytecodes introduced by JSR 292. As a result, compressed files created with this version of the pack200 tool will not be compatible with older versions of the unpack200 tool.

For more information, see the Compression Formats for Network Deployment section of the Java Rich Internet Applications Guide.



Platform and System Support Enhancements

The following enhancements affect support for platforms and systems:

JDK 8 for Linux ARM

JDK 8 provides support for Linux ARMv7-based systems. It is known to run but has not been fully tested on select ARMv6-based systems such as Raspberry Pi. Hard-float application binary interface (ABI) support has been added in JDK 8 for ARM; soft-float ABI support has been removed. Serviceability Agent (SA) has been added in JDK 8 for ARM. See Serviceability in HotSpot and jsadebugd - Serviceability Agent Debug Daemon for more information.


Removed Features

The following features, and their documentation, have been removed from JDK 8:

  • apt Tool: This tool and its associated API contained in the package com.sun.mirror have been removed.
  • JDBC-ODBC Bridge
  • Old Java Plug-in: The Java Plug-in deprecated since Java SE 6 Update 10 has been removed. The Java Rich Internet Applications Guide has been rewritten to reflect this. The old Java Plug-in is not compatible with newer Java technologies as JavaFX. In addition, the current Java Plug-in addresses security weakness found in the old Java Plug-in. For more information about the differences between the old Java Plug-in and the current one, see Applet Developer's Guide in the Java SE 7 Developer Guides.

Upcoming Documentation

Stay tuned for early access documentation related to the following areas:

  • Security Enhancements
    • Overhaul JKS-JCEKS-PKCS12 Keystores, JEP 166
    • MS-SFU Kerberos 5 Extensions, JEP 113
    • Limited doPrivileged, JEP 140
    • AEAD CipherSuites, JEP 115
    • Configurable Secure Random-Number Generation, JEP 123

  • Deployment Enhancements
    • Launch JavaFX Applications, JEP 153
    • Integrating JavaFX into the JRE and JDK
  • Networking Enhancements
  • Library Enhancements
    • Handle Frequent HashMap Collisions with Balanced Trees, JEP 180
    • JAXP 1.5: Restrict Fetching of External Resources, JEP 185
    • Concurrency Updates, JEP 155
    • Date & Time API, JEP 150
  • Language Enhancements
    • Access to Parameter Names at Runtime, JEP 118
    • Features Related to Lambda Expressions, JEP 126
      • Bulk Data Operations, JEP 107
      • Virtual Extension Methods
      • Enhance Core Libraries with Lambda, JEP 109
    • Nashorn JavaScript Engine, JEP 174
  • Tools and Other Enhancements
    • Doclint: javadoc and javac option to provide HTML compliance for Javadoc, JEP 172
    • Updating JVM Command Line Flags and Options
    • Optional Grouping: Provides different method views for generated Javadoc documentation
    • 64-bit Unsigned int Data Type
    • Compact Profiles, JEP 161
  • Removed Features: The documentation for these features will be removed in upcoming early access documentation updates:
    • Removal of ActiveX Bridge


Raymond Gallardo

");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"G52AM-AGLAF-9JTSA-TBAP5-PCJJE";var i=document.currentScript||document.getElementsByTagName("script")[0],o=!1,r=document.createElement("link");if(r.relList&&"function"==typeof r.relList.supports&&r.relList.supports("preload")&&"as"in r)window.BOOMR.snippetMethod="p",r.href=window.BOOMR.url,r.rel="preload",r.as="script",r.addEventListener("load",e),r.addEventListener("error",function(){t(!0)}),setTimeout(function(){if(!o)t(!0)},3e3),BOOMR_lstart=(new Date).getTime(),i.parentNode.appendChild(r);else t(!1);if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a)}}(),"".length>0)if(e&&"performance"in e&&e.performance&&"function"==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=""=="true"?1:0,t="",a="aniaje3ikzkdazlvtrmq-f-04e236f26-clientnsv4-s.akamaihd.net",i="false"=="true"?2:1,o={"ak.v":"36","ak.cp":"87563","ak.ai":parseInt("165106",10),"ak.ol":"0","ak.cr":6,"ak.ipv":4,"ak.proto":"http/1.1","ak.rid":"100a013f","ak.r":41489,"ak.a2":n,"ak.m":"dscx","ak.n":"essl","ak.bpcip":"3.80.4.0","ak.cport":52510,"ak.gh":"23.220.106.132","ak.quicv":"","ak.tlsv":"tls1.3","ak.0rtt":"","ak.csrc":"-","ak.acc":"bbr","ak.t":"1702206553","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==WxJsgfb4x+uuZnTxIbPSrRJjvZJpd8McZjl9ARzUHay46/P65h/w6wXHxhHwg8d1ywBTz9keoPL3nv6Lqgwz8gwVj8mN4NFstNM8P4IMZwB3hsXPpkxclRCUSxk8tUBH0QxCGSd2ZthBmrKL0u3O5b+T7zZ4JAsr85VTH6Qo4mEIW5g2PHEWKJikzUsm5MLinV/e7uCkzdunezyG4yWNeO4Pb+dS39o/hCZ+/tXappgh2wOkgaOW+OzSWB7xrqyXm0ct84l//aRgSTRtFeHvzjUr08Xsj+Gk3pu8KOqgDScPxkYnOwbTBNBvn1WDvXedH8C5b3g+153XzWphBDZv6fYAd4jFjD5ayp7s5IvD/WUXrg2mHqlTJ8BSr6JYtJMu+pHYWl8yH5+dmt/BFOowSJglu5PDuRu66q6AYLH/f0Y=","ak.pv":"272","ak.dpoabenc":"","ak.tf":i};if(""!==t)o["ak.ruds"]=t;var r={i:!1,av:function(n){var t="http.initiator";if(n&&(!n[t]||"spa_hard"===n[t]))o["ak.feo"]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(o)},rv:function(){var e=["ak.bpcip","ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:o,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e("before_beacon",r.av,null,null),e("onbeacon",r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window);

Java Development Kit Release 8 (JDK 8) Early Access Documentation, which helps developers explore features in the upcoming JDK 8 release, has been enhanced and updated. It comprises the Developer Guides, The Java Tutorials, and API
documentation
.

Download JDK 8 Early Access from JDK 8 Project.

Use the Project Feedback forum if you have suggestions for or encounter issues using JDK 8. If you find bugs in a release, submit them using the usual Java SE bug reporting channels.

The following describes where you can find documentation for specific JDK 8 enhancements:



Language and Library Enhancements

The following enhancements affect the Java language or the JDK library:

Lambda Expressions

Lambda expressions enable you to treat functionality as a method argument, or code as data. They also let you express instances of single-method classes more compactly. For example, you could use a lambda expression to perform a certain action on each element of a collection, when a process is completed, or when a process encounters an error. See the section Lambda Expressions in The Java Tutorials.

Method references enable you to refer to an existing method by name; they are compact, easy-to-read lambda expressions for methods that already have a name. See the section Method References in The Java Tutorials.

Bulk data expressions iterate over collections on your behalf, which enable you to write more concise and efficient code that process elements stored in collections. You specify lambda expressions as parameters for bulk data operations. This enables you to customize the behavior of a particular bulk data operation. The Collections trail will feature a new lesson about bulk data operations.


Parallel Array Sorting

JDK 7 introduced the Fork/Join framework for lightweight data parallelism, but users have to implement their own algorithms for simple/common tasks. In JDK 8, the Fork/Join framework is used to provide a standard implementation of parallel sorting for arrays.

For more information, see the Fork/Join and Arrays lessons in The Java Tutorials.


Annotations API Updates

Java SE 8 includes significant updates to the Annotations API:

  • It is now possible to apply the same annotation type more than once to the same declaration or type use. This feature is called repeating annotations.
  • It is now possible to apply an annotation anywhere a type is used, not just on a declaration. Used in conjunction with a pluggable type system, this feature allows for improved type checking of your code.

For more information, see the Annotations lesson in The Java Tutorials.


Base64 Encoding Schemes

The classes Base64, Base64.Encoder, and Base64.Decoder have been added. Applications that use base64 encoding schemes include those that use Multipurpose Internet Mail Extensions (MIME) and encode passwords for HTTP headers.

For more information, see Enhancements in Packages java.lang.* and java.util.*.

Security Enhancements

The following enhancements affect the security features in Java SE:


Server Name Indication Extension for Server Applications

The Server Name Indication (SNI) extension is a feature that extends the SSL/TLS protocols to indicate what server name the client is attempting to connect to during handshaking. In the Java Secure Socket Extension (JSSE) API for JDK 7, the SunJSSE provider has enabled SNI extension for client applications. JDK 8 supports the SNI extension for server applications as well. Servers can use the SNI to decide if specific SSLSocket or SSLEngine instances should accept a connection.

For information and examples, see the Server Name Indication (SNI) Extension section in the JSSE Reference Guide.


New PKIXRevocationChecker Class

The PKIXRevocationChecker class checks the revocation status of certificates with the X.509-based public-key infrastructure (PKIX) algorithm. It supports best-effort checking, single-certificate checking, and mechanism-specific options and parameters.

For more information, see the Java PKI API Programmer's Guide.


SHA-224 Message Digests

The cryptographic algorithms in JDK 8 have been enhanced with the SHA-224 variant of the SHA-2 family of message-digest implementations. For more information, see the following updated documentation:


Stronger Algorithms for Password-Based Encryption

Several AES password-based encryption (PBE) algorithms, such as PBEWithSHA256AndAES_128 and PBEWithSHA512AndAES_256, have been added to the SunJCE provider. For more information, see the Oracle Providers Documentation.


Enhanced Support for NSA Suite B Cryptography

This enhancement includes the addition of SHA-224, SHA-256, SHA-384, and SHA-512 message digests, as well as SHA224withDSA and SHA256withDSA signatures. Also, the keysize limit for the Diffie-Hellman algorithm has been increased from 1024 to 2048.

For more information, see the Oracle Providers Documentation and the Standard Algorithm Name Documentation.



Internationalization Enhancements

The following enhancements affect the internationalization features in Java SE:


Installation of Custom Resources as Extensions

The java.util.spi.ResourceBundleControlProvider interface enables you to change how the ResourceBundle.getBundle() method loads resource bundles. ResourceBundleControlProvider is a service provider interface (SPI). SPIs enable you to create extensible applications, which are those that you can extend easily without modifying their original code base.

For more information, see the Installing a Custom Resource Bundle as an Extension lesson in The Java Tutorials.


New Calendar and Locale APIs

New and updated Locale and Calendar APIs in JDK 8 support enhancements in the Unicode Common Locale Data Repository (CLDR) project. For a list of the APIs, see the Internationalization Enhancements page.



Tools Enhancements

The following enhancements affect the tools and utilities supplied with the JDK:


Pack200 Engine Updates

In Java SE 8, the Java class file format has been updated to reflect changes introduced by JSR 292: Supporting Dynamically Typed Languages on the Java Platform. Consequently, the Pack200 engine has been updated accordingly to ensure that class files are compressed effectively. In particular, the Pack200 engine now recognizes constant pool entries and new bytecodes introduced by JSR 292. As a result, compressed files created with this version of the pack200 tool will not be compatible with older versions of the unpack200 tool.

For more information, see the Compression Formats for Network Deployment section of the Java Rich Internet Applications Guide.



Platform and System Support Enhancements

The following enhancements affect support for platforms and systems:

JDK 8 for Linux ARM

JDK 8 provides support for Linux ARMv7-based systems. It is known to run but has not been fully tested on select ARMv6-based systems such as Raspberry Pi. Hard-float application binary interface (ABI) support has been added in JDK 8 for ARM; soft-float ABI support has been removed. Serviceability Agent (SA) has been added in JDK 8 for ARM. See Serviceability in HotSpot and jsadebugd - Serviceability Agent Debug Daemon for more information.


Removed Features

The following features, and their documentation, have been removed from JDK 8:

  • apt Tool: This tool and its associated API contained in the package com.sun.mirror have been removed.
  • JDBC-ODBC Bridge
  • Old Java Plug-in: The Java Plug-in deprecated since Java SE 6 Update 10 has been removed. The Java Rich Internet Applications Guide has been rewritten to reflect this. The old Java Plug-in is not compatible with newer Java technologies as JavaFX. In addition, the current Java Plug-in addresses security weakness found in the old Java Plug-in. For more information about the differences between the old Java Plug-in and the current one, see Applet Developer's Guide in the Java SE 7 Developer Guides.

Upcoming Documentation

Stay tuned for early access documentation related to the following areas:

  • Security Enhancements
    • Overhaul JKS-JCEKS-PKCS12 Keystores, JEP 166
    • MS-SFU Kerberos 5 Extensions, JEP 113
    • Limited doPrivileged, JEP 140
    • AEAD CipherSuites, JEP 115
    • Configurable Secure Random-Number Generation, JEP 123

  • Deployment Enhancements
    • Launch JavaFX Applications, JEP 153
    • Integrating JavaFX into the JRE and JDK
  • Networking Enhancements
  • Library Enhancements
    • Handle Frequent HashMap Collisions with Balanced Trees, JEP 180
    • JAXP 1.5: Restrict Fetching of External Resources, JEP 185
    • Concurrency Updates, JEP 155
    • Date & Time API, JEP 150
  • Language Enhancements
    • Access to Parameter Names at Runtime, JEP 118
    • Features Related to Lambda Expressions, JEP 126
      • Bulk Data Operations, JEP 107
      • Virtual Extension Methods
      • Enhance Core Libraries with Lambda, JEP 109
    • Nashorn JavaScript Engine, JEP 174
  • Tools and Other Enhancements
    • Doclint: javadoc and javac option to provide HTML compliance for Javadoc, JEP 172
    • Updating JVM Command Line Flags and Options
    • Optional Grouping: Provides different method views for generated Javadoc documentation
    • 64-bit Unsigned int Data Type
    • Compact Profiles, JEP 161
  • Removed Features: The documentation for these features will be removed in upcoming early access documentation updates:
    • Removal of ActiveX Bridge


","translate":null,"og_description":null,"featuredpost":false,"audience":null,"product":null,"comments":false,"meta_title":null,"time_to_read":6,"author":[{"id":"CORE40E98B67DE7C4BA084E8F4C6DE57A420","type":"Blog-Author","typeCategory":"ContentType","links":[]}],"translated-pages":null,"canonical_url":null,"featured_image":null,"og_image":null,"meta_description":null,"meta_robots":null,"primary_channel":"java","globalhomepagefeaturedpost":false,"publish_date":{"value":"2013-09-09T17:45:21.000Z","timezone":"UTC","formated":"September 9, 2013"},"desc":"JDK 8 Documentation - Developer Preview Release Java Development Kit Release 8 (JDK 8) Early Access Documentation, which helps developers explore features in the upcoming JDK 8 release, has been enhanced and updated. It comprises the Developer Guides, The Java Tutorials, and API documentation. Downl...","author_id":"COREE0419DE033394083AA3AA374CD4A17C5","categories":[{"category":"Java Tutorials","pageUrl":"../category/j-java-tutorials"}]}}">

Previous Post

Java Champion/Rock Star Adam Bien at JavaOne 2013

Janice Heiss | 4 min read

Next Post


New security requirements for RIAs in 7u51 (January 2014)

Guest Author | 2 min read