Questions tagged [java-15]

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

This release is the Reference Implementation of version 15 of the Java SE Platform, as specified by JSR 390 in the Java Community Process.

111 questions
1
vote
1 answer

RichTextFx not working in JavaFX, CodeArea not not showing up (Errors)

My build configs This is my code: MenuBar menuBar = new MenuBar(); Menu menu1 = new Menu("File"); Menu menu2 = new Menu("Edit"); Menu menu3 = new Menu("Project"); Menu menu4 = new Menu("Window"); Menu menu5 = new…
1
vote
1 answer

How can I format date in string in Java15?

I have a problem about showing date in the defined format in string text. It throws an error which is shown below after the app runs. Exception in thread "main" java.util.IllegalFormatConversionException: Y != java.lang.String How can I solve it…
S.N
  • 2,157
  • 3
  • 29
  • 78
1
vote
0 answers

Spring Starter with with Dependencies 'Spring Web' for Java 15 reports 'Failed to execute'

i downloadet from https://start.spring.io/ with Dependencies Spring Web and choosen Java 15 run mvn install and got this error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on…
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
1 answer

What is the Hidden Classes in java 15?

What exactly is the Hidden Classes feature in Java 15 ? As i read in Java 15 documentation , Spring & Hibernate frameworks used Hidden Classes ? I need real example to Spring and/or Hibernate used Hidden Classes .
Abd Abughazaleh
  • 4,615
  • 3
  • 44
  • 53
1
vote
1 answer

How to extract java preview class files from jdk 15?

I am currently trying to extract from the jdk the preview class files such as java.lang.Record from jrt-fs.jar (in libs folder), but it does not find the preview classes such as Record when iterating over it. This is the code I am using: Path…
1
vote
1 answer

Eclipse Java 15 support not working, compiler does not show correct version

I have followed the steps in https://marketplace.eclipse.org/content/java-15-support-eclipse-2020-09-417 to install the Java 15 support for Eclipse after previously upgrading my Eclipse to 2020-12 (4.18.0). However it doesn't work (compiler not…
NightShade
  • 141
  • 1
  • 8
1
vote
0 answers

Illegal reflective access by com.intellij.util.ReflectionUtil to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)

I've made some kotlin code in VSCode one of them is: fun main() { println("Hello world") } And when i run it, i get: [Running] cd "d:\Coding\Dicoding\" && kotlinc a.kt -include-runtime -d a.jar && java -jar a.jar Java HotSpot(TM) 64-Bit Server VM…
1
vote
1 answer

Mapstruct and Lombok unexpected result with Spring Boot 2.4 and above Is there any workaround or issues with this version?

I'm using the latest versions of Spring boot above 2.2.5 and Java 15, lombok, Mapstruct for mapping some pojos. When using version 2.2.5 of spring boot I'm getting the expected result : @Generated( value = "org.mapstruct.ap.MappingProcessor", …
Naou
  • 726
  • 1
  • 10
  • 23
1
vote
1 answer

IntelliJ: Put some dependencies on the module path in non-modular application

I have a non-modular Java 15 application that depends on stand-alone Nashorn (as an example). I have a maven project set up in Intellij with the Nashorn dependency: org.openjdk.nashorn
Jorn Vernee
  • 31,735
  • 4
  • 76
  • 93
1
vote
1 answer

Amazon Corretto 11 is uninstalled with Installation of Corretto 15

I just downloaded Amazon Corretto 15 and installed it on my Windows 10 Laptop. Corretto 8 and Corretto 11 are already installed. However, after installing Corretto 15, Corretto 11 was uninstalled! Corretto 8 was still there. Has anyone had similar…
Thomaserl
  • 13
  • 2
1
vote
1 answer

Unable to run my JavaFX project on Mac with JavaFX and JDK-15 Intellij. Error java.nio.file.AccessDeniedException

Hi I've been trying to set up JavaFX on my mac and I followed the tutorial layed out on their website. However, after following through everything, it keeps giving me an error and fails to compile with a message saying access denied in my other…
Advait Kulkarni
  • 139
  • 2
  • 12
1
vote
1 answer

Maven compile with compiler option --add-exports

So I finally switched to Java 15, and found out that my old code is not compiling anymore. I use classes from package sun.jvmstat.monitor and class LocalVmManager to retrieve the pid of all JVM running in the system: this is working on Java8, but no…
Jack
  • 1,488
  • 11
  • 21
1
vote
0 answers

Spring Boot 2.4.0 - Setting the SecurityContextHolder using a BasicAuthenticationFilter throws IllegalStateException

Currently performing the upgrade from Spring Boot v2.3.5 to v2.4.0. However, I'm running into a problem in regards to setting the SecurityContextHolder when a user is authenticated and actually going through the FilterChain. The problematic code is…
user7791584
1
vote
1 answer

Java 15 - records with different return type for getter

Is it possible to implement something like this in java 15? record Something( SomeId id, MyProp myProp, MaybeProp maybeProp ){ public Something(SomeId id, MyProp myProp){ this(id, myProp, null); } public…
Bojan Vukasovic
  • 2,054
  • 22
  • 43
1
vote
0 answers

Using JDK15's JEP 378 text blocks in Tomcat JSP pages

Sample code: String s = """ test """; %> Getting. org.apache.jasper.compiler.JDTCompiler.generateClass Unsupported target VM [15] requested, using [13] /usr/local/tomcat/bin/version.sh reports: Server version: Apache Tomcat/9.0.38 JVM Version: …
retep
  • 61
  • 1
  • 5