BellSoft (@bellsoftware) header
BellSoft (@bellsoftware) profile picture

Delivering #LibericaJDK: supported, @Java standard compatible binaries. Among Top-5 @OpenJDK contributors.

San Jose, CA
Joined January 2018
Why can the same request get faster after your Java app has been running for a while? @cat_edelveis explains what the JVM is still doing after startup in her guide to the JDK, JRE and JVM. youtu.be/3KxfvBWL1OY
2
14
615
CompletableFuture.allOf() returns a future that completes only after all supplied futures complete, even if one fails. Here, inventory completes exceptionally, but both remains incomplete until pricing completes. Calling join() then throws CompletionException, with the original IllegalStateException as its cause. #Java
1
3
32
1,351
Taking a Spring Boot app to production in Docker? @cat_edelveis builds the same app with a Dockerfile and with Paketo Buildpacks. Pick the version that matches your setup and follow along. youtu.be/FaNxoP41fIM
1
4
167
50 MB is possible for a real Java REST service. But once you assess the footprint gains against the trade-offs, things get interesting. @cat_edelveis tested it with Spring Boot and Quarkus: youtu.be/2f0LUg5_GvQ
1
6
1
25
1,213
What happens when a value object reaches synchronized through an Object reference? With JDK 28 preview features enabled, only identity objects have monitors. If the reference points to a value object, monitor acquisition throws IdentityException. Use a separate identity object when you need a lock. #Java
1
1
6
328
Couldn’t make it to @Devoxx? Catch @asm0di0’s Mission Possible on video. Pasha tackles a Java container image full of CVEs and shows the changes that reduce its exposure, with Dockerfile examples you can reuse. Watch here: youtu.be/1yndLHw9mbo
3
191
You can try JSpecify without annotating your whole Java project. @cat_edelveis starts with one package and uses NullAway to catch a bug that would otherwise crash the app. See how to get the checks working: youtu.be/Ymx4hwCsia4
1
2
253
JDK 28's incubating JSON API lets you construct JSON objects from maps of JSON values. Use JsonString.of() for Java String values. JsonString handles JSON-level escaping, so embedded quotation marks are emitted correctly in the generated JSON text. #Java
1
1
26
600
Missed the Axelix stream? The replay is up! @cat_edelveis and Axelix CEO Mikhail Polivakha explored how the open source tool finds problems in Java apps, with AI making application quality an even bigger topic. Catch up here: youtube.com/watch?v=yv7xywZV…
5
225
NullPointerException again? @cat_edelveis tracks down the bug behind a crash and shows why adding a null check can leave you with more debugging to do. Watch the new video: youtu.be/dm_Lgy90ixY
1
1
10
372
A connect timeout alone is not enough to bound an HTTP request. Java's HttpClient has a client-level timeout for establishing new connections, and HttpRequest can set a per-request timeout for receiving the response. Set connectTimeout() on the client and timeout() on the request. Java 11+. #Java
1
8
257
Several callers waiting on the same CompletableFuture? orTimeout() times out the future you call it on. Use copy() to give one caller its own timeout without timing out the shared future. Java 9+. #Java
1
1
14
619
⚡️️️️️️️ We’re live! Join @cat_edelveis and Axelix CEO Mikhail Polivakha for a closer look at the open source tool for finding problems in Java apps, and where it fits into Spring Boot development with AI. Come watch and join the chat: youtube.com/watch?v=yv7xywZV…
3
311