https://github.com/linux-china/java11_in_action
Java 11 in Action
https://github.com/linux-china/java11_in_action
Last synced: about 1 year ago
JSON representation
Java 11 in Action
- Host: GitHub
- URL: https://github.com/linux-china/java11_in_action
- Owner: linux-china
- Created: 2018-08-08T23:25:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T22:25:12.000Z (over 7 years ago)
- Last Synced: 2025-04-02T02:51:10.456Z (over 1 year ago)
- Language: Java
- Size: 14.6 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Java 11 in Action
=================
Please refer https://winterbe.com/posts/2018/08/29/migrate-maven-projects-to-java-11-jigsaw/ first.
# Official features
* Nest-based access control
* Dynamic class-file constraints
* Improve Aarch64 Intrinsics
* Epsilon: A No-Op Garbage Collector
* Remove enterprise APIs: JAXB, JAX-WS, JAX-WS Annotations, CORBA, JTA, JAF
* JavaFX: no longer bundled with Java 11, and with OpenJFX and added as dependency
* HTTP Client (Standard)
* Local variable syntax for lambda parameters: https://blog.jetbrains.com/idea/2018/06/java-11-in-intellij-idea-2018-2/
* Key agreement with Curve25519 and Curve448
* Unicode 10 support
* Flight recorder
* ChaCha20 and Poly1305 cryptographic algorithms
* Launch single-file source-code programs
* Low-overhead heap profiling
* TLS 1.3 support
* ZGC: A scalable low-latency garbage collector (Experimental)
* Removed: Applets, Java Web Start
* Deprecate the Nashorn JavaScript Engine, replaced with Graal.js
* Deprecate the Pack200 Tools and API
# Demo
* Project Amber:
* JEP 302 Lambda Leftovers
* JEP 305 Pattern Matching
* JEP 323 Local-Variable Syntax for Lambda Parameters
* JEP 325 Switch Expressions
* JEP 326 Raw String Literals
* Type inference
* Http Client: BodyHandlers with various useful handlers http://openjdk.java.net/groups/net/httpclient/intro.html https://download.java.net/java/early_access/jdk11/docs/api/java.net.http/java/net/http/HttpResponse.BodyHandlers.html
* Enhanced Enum
* data class
* Launch Single-File Source-Code Programs
```
java --source 11 src/main/java/org/mvnsearch/App.java
```
# References
* <>
* JDK 11: http://openjdk.java.net/projects/jdk/11/
* JDK 11 Download: http://jdk.java.net/11/
* Project Amber: http://openjdk.java.net/projects/amber/