Questions tagged [java-19]

Use this tag for questions specific to Java 19, which is version 19 of the Java platform, released on September 9, 2022. In most cases you should also specify the java tag.

67 questions
0
votes
1 answer

jdk-19 pattern switch fails to compile

I am trying a very simple example with jdk-19 preview of pattern matching: static String asString(Object value) { return switch (value) { case String s && s.length() > 10 -> "bigger then 10 : " + s; case String s…
Eugene
  • 117,005
  • 15
  • 201
  • 306
0
votes
0 answers

Java built-in HttpClient doesn't remove subscribers fast enough

I have the following code: import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import…
Roy Ash
  • 1,078
  • 1
  • 11
  • 28
0
votes
1 answer

Facing Eclipse Marketplace Error after installing JDK 19

I have updated java to JDK 19 and when I try opening Eclipse Marketspace i am getting below error, MarketplaceDiscoveryStrategy failed with an error Cannot complete request to…
Ajeesh
  • 25
  • 1
  • 5
0
votes
0 answers

IntelliJ Idea SpringBoot-Application (Java 19) Allow the device with the front-end aplication to work together with the external back-end application

the question as follows : I have a hardcoded IP-adress inside of the allowlist of the back-end application. Everytime the front-end application is running on another device, the front-end has to get permission from the back-end to be used…
Cezar P
  • 85
  • 1
  • 6
0
votes
0 answers

Downgrading Java Version

I am trying to publish a React App to the Google Play Store, and I had downloaded and installed java 19, only to find out that the build command I need to run to publish the app is incompatible with version 19. I want to make sure I do this…
user18899735
0
votes
0 answers

Why debug can not step into/force step into Continuation.yield(ContinuationScope) method

question occur in OpenJDK 19 when debugging in VirtualThread.yieldContinuation(). At 370 line, i can not step into or force step into the method Continuation.yield(VTHREAD_SCOPE) ... try { return Continuation.yield(VTHREAD_SCOPE); //line…
Semghh
  • 1
-1
votes
1 answer

What is Structured Concurrency?

This is a sort-of terminology question. One of the features of Java 19 is "Structured Concurrency". Why is that so-named? is it because the asynchronous code is not truly parallel? We are lead to believe that these fibers or virtual threads are like…
HellishHeat
  • 2,280
  • 4
  • 31
  • 37
1 2 3 4
5