Questions tagged [java-11]

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

JEPs targeted with this JDK release:

  • 181: Nest-Based Access Control
  • 309: Dynamic Class-File Constants
  • 315: Improve Aarch64 Intrinsics
  • 318: Epsilon: A No-Op Garbage Collector
  • 320: Remove the Java EE and CORBA Modules
  • 321: HTTP Client (Standard)
  • 323: Local-Variable Syntax for Lambda Parameters
  • 324: Key Agreement with Curve25519 and Curve448
  • 327: Unicode 10
  • 328: Flight Recorder
  • 329: ChaCha20 and Poly1305 Cryptographic Algorithms
  • 330: Launch Single-File Source-Code Programs
  • 331: Low-Overhead Heap Profiling
  • 332: Transport Layer Security (TLS) 1.3
  • 333: ZGC: A Scalable Low-Latency Garbage Collector    (Experimental)
  • 335: Deprecate the Nashorn JavaScript Engine
  • 336: Deprecate the Pack200 Tools and API

Early access builds are available for this release

Production-ready binaries under the GPL are available from Oracle; binaries from other vendors will follow shortly.

JDK 11 release Notes

JSR 384

2873 questions
1
vote
1 answer

Exception when using Mockito with Java11

We're upgrading from Java 8 to 11. After having done all the necessary SDK changes, I started running our unit tests using maven. All tests that use Mockito fail with java.lang.ClassCastException: class…
RekaB
  • 438
  • 5
  • 14
1
vote
1 answer

Can the port be set in the Maven payara-micro-maven-plugin to avoid "address already in use" running multiple instances?

Downloaded generated microprofile/payara demo app from: https://start.microprofile.io/ Starting first instance (demo-service-a) runs fine. Starting separate instance (demo-service-b), getting... java.net.BindException: Address already in use: bind …
sairn
  • 461
  • 3
  • 24
  • 58
1
vote
1 answer

WARN EclipseJavaCompiler Using unsupported java version '11', assuming latest supported version '9' when running AEM 6.5 on Java 11

When running AEM 6.5.3 on Java 11 I noticed suspicious WARN messages appearing in error.log from time to time: 08.01.2020 16:33:06.236 WARN [10.0.2.2 [1578497585926] GET /editor.html/content/* HTTP/1.1]…
mierzwid
  • 304
  • 3
  • 8
1
vote
1 answer

Getting type of field without any annotations in annotation processor

I've struggled with this for a while now, relying on various arcane casts and manipulation of toString to get it working, but there has to be a proper way of doing this. I've got an annotation processor that looks like…
Raniz
  • 10,882
  • 1
  • 32
  • 64
1
vote
2 answers

Java 11 Hibernate Validator module not found error

I am having trouble migrating my project to Java 11 from Java 8 with Hibernate validator. I get the following error while attempting to build my project with maven: [INFO] --- maven-processor-plugin:3.3.3:process (default) @ maple-orm --- [ERROR]…
jon5477
  • 520
  • 6
  • 17
1
vote
1 answer

What version of Java should I use for developing my MOJO Maven Plugin?

I am currently implementing a new Maven Plugin and I would like to use Java 11 for compilation and execution. However, I would like my Maven plugin to be used by most of our projects. Some of them are running in Java 8, some in Java 11. Is it…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
1
vote
1 answer

Issue with mssql driver in spring boot application

I have an issue with MS SQL jdbc driver. pom.xml
Kiril Mytsykov
  • 659
  • 2
  • 10
  • 21
1
vote
1 answer

Issue with Axis 1.4 (Could not load [META-INF/services/org.apache.axis.EngineConfigurationFactor)

I have a Spring-boot project run with JDK 11, need import an external lib to do some functions, this lib is dependency to Axis 1.4. When I Run as >> Java application, it's ok. But when I run by "mvn spring-boot:run". Have…
ThanhQB
  • 35
  • 6
1
vote
1 answer

Java 11 Predicate lambda expression generic type ClassCastException

I have problem on java 11 predicate lambda expression generic type , when I write predicate as lambda expression is not returning exactly generic parameter ,and ClassCastException occurs , code seen below Explaination When we write lambda…
Mithat Konuk
  • 447
  • 5
  • 19
1
vote
1 answer

Generic parameterised type return generates warning or error

In the example code below I'm trying to return but at the very least I get a warning. The other scenarios (2 and 3) result in an error. Is there a correct way to return that does not result in a warning? static class Cars { …
Andy Cribbens
  • 1,370
  • 2
  • 11
  • 22
1
vote
2 answers

TFS plug-in is not working for eclipse 2019-09

I'm recently migrated to jdk 11 from jdk8. So, i choose eclipse 2019-09 but TFS plug-in is not showing in eclipse market place. so, i tried installing it manually, but some options are not working like viewHistory, comparing based on change sets…
1
vote
0 answers

VerifyError: Bad type on operand stack dropwizard

We upgraded the java version to 11 in a microservice. When we tried to run the app, we got the following message: Caused by: java.lang.VerifyError: Bad type on operand stack Exception Details: Location: …
omer blechman
  • 277
  • 2
  • 16
1
vote
1 answer

Spring Boot 2.2 ClassNotFoundException com.sun.xml.ws.spi.ProviderImpl upgrading from Java 8 to 11 using fat jar

I'm upgrading from Java 8 to Java 11. I'm using javax.ws packages so I had to include dependencies removed in Java 11. jakarta.xml.ws jakarta.xml.ws-api
David Canós
  • 1,806
  • 18
  • 19
1
vote
2 answers

Installing tomcat 7 as a service on Java 11:NB: JAVA_HOME should point to a JDK not a JRE

I have installed Java 11 and set up system variables as: JAVA_HOME C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot and Path to C:\Program Files\AdoptOpenJDK\jdk-11.0.5.10-hotspot\bin When I try to install tomcat as service using service.bat,…
Rose
  • 1,490
  • 5
  • 25
  • 56
1
vote
0 answers

Have error java.nio.file.FileSystemException Too many levels of symbolic links or unable to access attributes of symbolic link

I build a framework that runs java 8, maven, serenity bdd. I still build docker image to run CI/CD. I updated the framework to java 11. It worked perfectly on my computer (mac OS). https://prnt.sc/qkb9n8 But when I tried to build an image on…
The Sun
  • 503
  • 1
  • 3
  • 13
1 2 3
99
100