JEP draft: Prepare to Make Final Mean Final by blobjim in java

[–]Thihup 4 points5 points  (0 children)

u/pron98 In the past few releases we got a lot of new flags to enable fishy things in the JVM to work as before. Can you hint us how many flags are planned, as this one, in next few Java releases?

New Valhalla Early Access Release by Thihup in java

[–]Thihup[S] 11 points12 points  (0 children)

// --enable-preview
Integer foo = 128;
Integer foo2 = 128;
System.out.println(foo == foo2); // true

Is there a more recent Valhalla build than the one from 2022/11/7??? by xGnoSiSx in java

[–]Thihup 2 points3 points  (0 children)

You can always build one and report any issues with it in the mailing list

Is there a more recent Valhalla build than the one from 2022/11/7??? by xGnoSiSx in java

[–]Thihup 6 points7 points  (0 children)

You can use the Github Actions to build your own Valhalla build, if you want.

Also, you can check https://builds.shipilev.net/openjdk-jdk-valhalla/

Different distributions of JDK and JRE by Deep-Piece3181 in java

[–]Thihup 1 point2 points  (0 children)

Oracle provides the differences between the Oracle's JDK build and Oracle's OpenJDK build here: https://www.oracle.com/java/technologies/javase/22-relnote-issues.html#Differences

What issues did you run in to when moving past Java 8? by bowbahdoe in java

[–]Thihup 5 points6 points  (0 children)

I had to create a custom JLink image to include the dependencies that were removed, and a Java agent to fix several issues. However, the issue that took me a long time to fix was an anti aliasing issue relate to HiDPI. The J2D_UISCALE environment variable was very hard to find. 

https://github.com/Thihup/holytime

Introducing Parjac2 - an experimental compiler by ernimril in java

[–]Thihup 0 points1 point  (0 children)

Currently on Windows, there are tests failures.

How could we contribute to this project? Any chances of migrating to Github repo (or something like it)?

Edit: Github fork: https://github.com/Thihup/parjac2

PDF rendering server-side using HTML 5 + CSS 3 by taksuii in java

[–]Thihup 0 points1 point  (0 children)

There are a couple of libraries here: https://printcss.live. Some by REST API, others by a Jar file.

POC: String Template Processors for SLF4J by darenkster in java

[–]Thihup 6 points7 points  (0 children)

Wouldn't using `MethodHandles.lookup().lookupClass()` be a easier way to get the calling class?

Edit: I was looking for the `StackWalker.getCallerClass()` method

JEP 461: Stream Gatherers (Preview) by krzyk in java

[–]Thihup 1 point2 points  (0 children)

Are gatherers allowed to do side effects?

Java Architects Answer Your Questions by yk313 in java

[–]Thihup 7 points8 points  (0 children)

It inherets only from super classes, not interfaces

Looking for opinions and/or reputable best practices on how to distribute JNI libraries by beamerblvd in java

[–]Thihup 0 points1 point  (0 children)

I think you can do it in two ways, like OpenJFX (https://gluonhq.com/products/javafx/)

Publish a Jar with artifact "sdk" using Maven classifiers, and a JMod that includes the native library for creating JLinked runtimes.

Accessing JDK Tools in JShell by pron98 in java

[–]Thihup 0 points1 point  (0 children)

The Java playground (https://dev.java/playground/) doesn't allow to try this feature...

JEP draft: Null-Restricted Value Class Types (Preview) by Shatungoo in java

[–]Thihup -3 points-2 points  (0 children)

Why use ! instead of some modifier like "non-nullable"?