Questions tagged [java-14]

Reference Implementation of version 14 of the Java SE Platform, as specified by JSR 389 in the Java Community Process. Use this tag for questions specific to Java 14, which is version 14 of the Java platform, released on 17 March 2020. In most cases you should also specify the java tag.

Version 14 of the Java programming language.

The reference implementation of Java 14 reached General Availability on 17 March 2020.

The JDK/14 production-ready binaries for Linux and Windows.

New features and improvements:

  • Pattern Matching for instanceof (Preview)
  • Packaging Tool (Incubator)
  • NUMA-Aware Memory Allocation for G1
  • JFR Event Streaming
  • Non-Volatile Mapped Byte Buffers
  • Helpful NullPointerExceptions
  • Records (Preview)
  • Switch Expressions (Standard)
  • Deprecate the Solaris and SPARC Ports
  • Remove the Concurrent Mark Sweep (CMS) Garbage Collector
  • ZGC on macOS
  • ZGC on Windows
  • Deprecate the ParallelScavenge + SerialOld GC Combination
  • Remove the Pack200 Tools and API
  • Text Blocks (Second Preview)
  • Foreign-Memory Access API (Incubator)

Specified by JSR 389 in the Java Community Process.

192 questions
0
votes
1 answer

What/Where is Thread Working Copy on physical device

From the java specification: Every thread has a working memory in which it keeps its own working copy of variables that it must use or assign. As the thread executes a program, it operates on these working copies. The main memory contains the…
0
votes
0 answers

Useless static keyword in enclosed interface

If you take a look at java.util.concurrent.Flow.Subscriber then you will notice that it is a static interface. However, this code works as well: class MyCls { interface Enclosed { } } // somewhere ... MyCls.Enclosed enclosed = // ... As per…
0
votes
0 answers

How to override second time a method of mocked object using Mockito?

SQLException is thrown in overrideMockedDsConnectionAction when calling case CONNECTED after case DISCONNECTED. Mockito calls ds.getConnection() that throws the exception when it is expected to override previous behaviour. How to make it…
J.Olufsen
  • 13,415
  • 44
  • 120
  • 185
0
votes
0 answers

OpenJDK 14 : java.security.NoSuchProviderException: no such provider: BC when set statically

Able to configure Bouncy Castle dynamically by adding below: Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); but when done statically by adding entry in $JAVA_HOME/conf/security/java.security properties…
0
votes
1 answer

Issues getting jpackage to run on a Mac Catalina 10.15.5

I'm attempting to bundle my Java app into a .dmg file. The plan is to sign and notarize my app for distribution on my website https://strides.co.nz. I have downloaded Java 14 and have successfully created a path on bash profile. Some java commands…
0
votes
1 answer

Can you use Java JPackage to create own Windows installer without using its way of running application

Background, I currently use Izpack for my Windows installer, I bundle a java runtime and use winrun4j as a wrapper both for the installation and the actual program once installed. It worked for a long time but there are a number of problems with the…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
0 answers

MapStruct - No converter found for return value of type

I want to use records from java 14 with entity (from java persistence). I try to map my user to userDto and my debbuger show that all is correct mapped. But unfortunettly I got the error when I want to print my userDto: Resolved…
Pawel
  • 427
  • 2
  • 7
  • 15
0
votes
3 answers

Java 14 text block leading \r\n inserted when used in Eclipse 4.15.0

I am in the process of learning how to cope with java 14 (preview) text blocks. When using following text block in a Junit test I run across the following unexpected feature (simplified code example, in the real test I use an HTML…
PaulN
  • 63
  • 2
  • 10
0
votes
1 answer

problem creating windows package using jpackage in windows 10?

I am using openjdk 14.0.1 i have been following the tutorial https://openjfx.io/openjfx-docs/#install-javafx Following the tutorial for Runtime images Modular from CLI i have successfully created the runtime image using jlink. The created runtime…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
0
votes
1 answer

which version of payara or glassfish should I use with jdk 14?

Which version of payara or glassfish should I use with jdk 14? I've already tried glassfish 5.1.0 and payara 5.201.
Houria
  • 71
  • 7
0
votes
1 answer

Azure SQLServerException posts upgrade

I recently updated from JAVA 12 to JAVA 14 and updated a lot of my libraries. A newer version of spring, Azure libs, etc, etc. However, upon trying to run my app with these new bells & whistles I'm getting the following…
ist_lion
  • 3,149
  • 9
  • 43
  • 73
0
votes
1 answer

How do I run the Topcoder Arena Applet under JDK 14?

I just downloaded the Topcoder Arena applet, but I am unable to launch it. I am on JDK 14 on Windows 8.1x64. I tried the following: javaw ContestAppletProd.jnlp Did nothing. java ContestAppletProd.jnlp Error: Could not find or load main class…
ng.newbie
  • 2,807
  • 3
  • 23
  • 57
0
votes
0 answers

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException despite dependency in pom.xml

I know this question has been answered before, but none of the solutions seem to work. I can compile my program and run the jar with jdk-14 without errors. But when I click the part in the program that uses the jaxb-api the error occurs. This is my…
0
votes
1 answer

I have upgraded JDK 8 to JDK14 and I got some problems in android studio

I have upgraded JDK 8 to JDK14 and I got some problems in android studio , and i want to return it back , any body can help me to completely downgrade to resolve problems one problem that i asked in the below link,i think if i can return…
Amir Hossein
  • 45
  • 1
  • 8
0
votes
0 answers

java 14 Issue Message You are using a preview language feature that may or may not be supported in a future release

I'm engaged in Java14 features in these days. I could write a code snippet about switch case and I created a dynamic web project to use this command --enable-preview to run any code based on Java14 but I have a problem about it. I tried many things…
S.N
  • 2,157
  • 3
  • 29
  • 78
1 2 3
12
13