this post was submitted on 08 Nov 2025
0 points (50.0% liked)

Java

1829 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
 

Null-pointer exceptions are a common error in Java, causing inconvenience for many developers. Preventing null pointer exceptions in advance is important, but for developers who want to focus solely on logic, handling them can be tedious. Moreover, it’s not always easy to account for every scenario. Typically, static analysis tools are used to detect potential null pointer issues, but developers still have to find and fix the code themselves. JPlus reduces that burden. Let’s write null-safe Java code with JPlus.

top 3 comments
sorted by: hot top controversial new old
[–] Pamasich@kbin.earth 1 points 3 days ago (1 children)

Modern Java already has null safety via the Optional class. If a developer is too lazy to use that, what makes you think they would use JPlus?

In my opinion this one is a bad selling point, because you're really just offering a cleaner looking alternative to what's already there, but you're not focusing on that, you're presenting it as if it solves a problem, which it doesn't.

[–] justicecoder@programming.dev 1 points 3 days ago

Unlike Java’s Optional, which is a library feature, JPlus provides null-safety at the language level. It allows developers to write code where null-safety is enforced consistently, without wrapping every value in an Optional. In that sense, JPlus brings the same kind of safety and clarity that Kotlin offers but keeps full compatibility with Java syntax and tooling.

[–] xxce2AAb@feddit.dk 3 points 5 days ago

That seemed like a bold claim, and, indeed, this is more like "tool-assisted rewriting".