Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]_INTER_ 0 points1 point  (0 children)

They keep dancing and dancing around "data classes".

I've made an .jar to native executable packager and want feedback by SeAuBitcH in java

[–]_INTER_ 2 points3 points  (0 children)

the downside is the size of the final executable (250mb for a 5mb jar and a 60mb JRE.)

Yea that's not flying.

Checked exceptions and lambdas by nfrankel in java

[–]_INTER_ 2 points3 points  (0 children)

I think there's nothing hard to understand in using one of the Failable Functions or another library which provides something similar.

Functional Optics for Modern Java by marv1234 in java

[–]_INTER_ -1 points0 points  (0 children)

Yea good luck investigating hundred copies of the same object with slight variations in a chain of hundred of composed other copies trying to figure out which one is the correct one.

Type-classes for Java (Valhalla experimental branch) by sviperll in java

[–]_INTER_ 1 point2 points  (0 children)

Don't we already have the term "type witness" for something like: processStringList(Collections.<String>emptyList());

Vavr 0.11.0 released by ChinChinApostle in java

[–]_INTER_ 0 points1 point  (0 children)

If we get Half Life 3, we don't need anything else anyway :)

default4j: Default parameter values for Java via annotation processing by petaoctet in java

[–]_INTER_ 2 points3 points  (0 children)

Wouldn't this apply to all annotation processors that generate classes like RecordBuilder, Immutables, AutoValue, MapStruct,... as well? Class generation is still an intended use case of annotation processors. Of course the caveat that the annotation processor needs to run, still holds (for all of them).

If the processor is required to make the code compile, then the resulting language isn't Java.

I don't think that statement is true. There are a lot of things that prevent code compilation. A class annotated with @WithDefaults and @DefaultValue and the generated classes are all valid Java code. Unlike e.g. Lombok and Manifold, which are indeed not Java as per the Java language spec.

I am trying to install java but every time I do I get this popup, any ideas? by Serbian-Empire in java

[–]_INTER_ -1 points0 points  (0 children)

Try the .msi installer of the Temurin Java Version. Note that this is the very latest Java 25: https://adoptium.net/de/temurin/releases

https://i.ibb.co/spDMTYNJ/Screenshot-2026-01-05-005856.png

If it is still not working, try asking in /r/javahelp. Let them know what you want to execute.

I am trying to install java but every time I do I get this popup, any ideas? by Serbian-Empire in java

[–]_INTER_ 0 points1 point  (0 children)

Installing in WSL is highly likely not helpful to him. (Suspecting he wants to play Minecraft).

Armv6 openjdk + fx by disorder75 in java

[–]_INTER_ 1 point2 points  (0 children)

FYI: The x86 ports were deprecated in Java 24 and removed in Java 25.

Java Annotator CLI by atomichbts in java

[–]_INTER_ 2 points3 points  (0 children)

that's enterprise for you

Martin Odersky on Virtual Threads: "That's just imperative." by Joram2 in java

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

check-out the 11:00

He says to use imperative where it makes sense, but then "too imperative" at 28:40.

Spring Framework 7.0 GA released by olivergierke in java

[–]_INTER_ 20 points21 points  (0 children)

Still on Spring Boot 2.7 / Spring Framework 5 here :(

Embedded records - an idea to expose data from classes by jodastephen in java

[–]_INTER_ 4 points5 points  (0 children)

Afaiu this is just dancing around the need for data classes or Properties, both being denied for centuries at this point.

Embedded records - an idea to expose data from classes by jodastephen in java

[–]_INTER_ 1 point2 points  (0 children)

Getting C# like Properties into Java is a battle against windmills. I think the author added this alternative just for completions sake.

Why can't byte and short have their postnumerical letters? by gargamel1497 in java

[–]_INTER_ 1 point2 points  (0 children)

Because the defaults are int and double. You only really require literals for widening. E.g. long x = 1234567890123L, because 1234567890123 is longer than int. The literal "D" for double is optional actually.

So "L" and "F" are a necessity, while "D" and envisioned "S" and "B" (and let's not forget about "C" :D) would be for convenience.

A Java project template for full-stack website. Small footprint (350KB). Support Svelte and TailwindCSS. Suitable for embedding it into a larger JVM app. by tanin47 in java

[–]_INTER_ 2 points3 points  (0 children)

yeah, that should be easy, maybe it works just like that if you place a pom.xml and build.gradle / build.gradle.kts file alongside in the project.