Questions tagged [java-13]

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

This is the Reference Implementation of version 13 of the Java SE Platform, as specified by JSR 388 in the Java Community Process.

105 questions
5
votes
1 answer

Jess - Performance regression from Java 11 to Java 13+

we are using Jess, which is a rules engine, written in Java. It has become pretty old and most of it is written using Java 1.5 and lower language features. Now, we are using this for many years and never noticed any problems during the Java…
sveri
  • 1,372
  • 1
  • 13
  • 28
5
votes
1 answer

Change static final field in java 12+

This question is strongly related to Change private static final field using Java reflection. There, it was asked, how to change a private static final variable. However, the answers on that question do not work in Java 12+ as you cannot access…
dan1st
  • 12,568
  • 8
  • 34
  • 67
5
votes
2 answers

JavaFX WebView: can't get JS bridge to work in Java11+

I can't get the Java / Javascript bridge to work on Java11 and Java13. The bridge seems to work fine i Java8 and Java10. Here is essentially the same code as https://stackoverflow.com/a/34840552/11329518, which again works for me on Java8 and…
Guillaume F.
  • 1,010
  • 7
  • 21
5
votes
1 answer

Java: Where does the Extensions Class Loader get classes from in Java 13?

All the documentation I've been able to find mentions the 'jre/lib/ext' folder but such does not exist on my JRE 13 installation. I guess somewhere between Java 8 (where I can see the jars in jre/lib/ext) and Java 13, they moved but I've been…
DraxDomax
  • 1,008
  • 1
  • 9
  • 28
4
votes
1 answer

maven surefire plugin not using --enable-preview mode

Here it's my pom.xml: ... org.apache.maven.plugins maven-compiler-plugin 3.8.1
michele
  • 26,348
  • 30
  • 111
  • 168
4
votes
1 answer

How to match OpenJFX GA release versions with github tag versions?

I'm trying to figure out how to match the versions of OpenJFX general availability releases like 13.0.2 with any tags available in https://github.com/openjdk/jfx/releases. The numbering format of those tags is always something like X+Y. Then how can…
OOEngineer
  • 447
  • 3
  • 12
4
votes
2 answers

How to enable Shenandoah Garbage Collector for OpenJDK13 on MacOS

I have the latest (13.0.1) OpenJDK on my Mac, but it does not seem to include Shenandoah. Am I crazy? I know it shipped. It works on my Linux machine. Is there a different download? Different flags? ~ $ java -XX:+UnlockExperimentalVMOptions…
sbzoom
  • 3,273
  • 4
  • 29
  • 34
4
votes
2 answers

Does JMeter works on OpenJDK 13?

I've did web search jmeter and openjdk 13 and found only that relevant post: Is JMeter is going to be paid as Oracle decides for Java post 1.8v?: JMeter needs Java >=8 (Java 9 and 10 are intermediate and not advised). On Apache JMeter page last…
Alex Martian
  • 3,423
  • 7
  • 36
  • 71
4
votes
1 answer

Gradle execution failed for task ‘:test’ when changing sourceCompatibility and targetCompatibility from 1.8 to 13

Following error occurs when migrating from source and target compatibility from 1.8 to 13 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:test’. Failed to read class file…
kula sekhar
  • 107
  • 1
  • 6
4
votes
1 answer

AspectJ java 13 support?

Recently upgraded a large project from Java 11 to 13. I am using AspectJ for logging purposes and I am now getting this error on startup : AspectJ Internal Error: unable to add stackmap attributes. Unsupported class file major version 57 Looks…
Martin
  • 1,977
  • 5
  • 30
  • 67
3
votes
1 answer

Why is removeRange(int fromIndex, int toIndex) in Java Vector is protected?

can anyone throw some light on why is removeRange(int fromIndex, int toIndex) in Java Vector is protected? Syntax - protected synchronized void removeRange(int fromIndex, int toIndex) I have studies a few blogs and did some code to understand but…
Xat
  • 127
  • 1
  • 3
  • 10
3
votes
2 answers

Eclipse does not recognize gradle dependencies

I am relatively new to Eclipse, I am an IntelliJ guy :) So to practice, I have made a dummy Gradle project in Eclipse, and it is not even recognizing the automatically inserted JUnit dependencies. The stack I am using is the following: Gradle…
lyancsie
  • 658
  • 7
  • 18
3
votes
2 answers

Cross Compilation in Java 13 and Java 8

I want to load a Java version specific JavaCompiler. This is how I take compiler instance currently: JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); My aim is to compile a "user Java code" according to the Java version (Java 8 or Java…
niranjan_harpale
  • 2,048
  • 1
  • 17
  • 21
3
votes
2 answers

@WebServlet fails in GlassFish 5 + JDK 13 with java.lang.RuntimeException: com.example.NewServlet.(NewServlet.java:1), always at line 1

JSPs and html files are served by my Glassfish server in NetBeans, but not servlets. Latest NetBeans is configured to use JDK latest 13, and Glassfish is using Java EE 1.8 Error reported in the browser: HTTP Status 500 - Internal Server Error …
3
votes
1 answer

Exception in thread "main" java.lang.NoClassDefFoundError: gherkin/formatter/Formatter Cucumber 5.2.0

I am trying to setup my first Cucumber effort in Eclipse. I setup a basic feature file in the Features folder the way that the tutorial video suggested, but trying to execute as a cucumber feature, I get the following: Exception in thread "main"…
mlrtyme
  • 41
  • 4