Explore two distinct approaches, focusing on using a custom annotation and Reflections, for identifying and registering subtypes.
Search Results for: compiler
Convert One Enum to Another Enum in Java
A quick and practical guide to convert one enum to another.
Gradle Toolchains Support for JVM Projects
Explore the Gradle toolchains feature for JVM.
Lombok’s @RequiredArgsConstructor Annotation
Learn how the @RequiredArgsConstructor annotation of Lombok can help auto-generate constructors for classes.
Starting the Maven Build From the Point Where It Failed
Learn how to resume a Maven build after failure.
Need for Default Constructor in JPA Entities
Learn about the JPA requirement for a default no-argument constructor in an Entity class.
Throw Exception for Unexpected Input for Enum With MapStruct
Learn how to map one enum to another with MapStruct.
Java Weekly, Issue 492
Exhaustiveness in Pattern Matching, dynamic threads for JVM compilers, JFR events in shell, association attributes in JPA, and zero downtime migrations at scale!
Overriding hashCode() And equals() For Records
Learn how records provide us with a default implementation of equals() and hashCode() methods.
Scoped Values in Java 20
Scoped values is a new API in Java 20 that enables developers to store and share immutable data within and across threads. We look at how to use it and how it works.
Working with Virtual Threads in Spring 6
Learn how to use virtual threads in a Spring 6-based application.
Analyze, Generate and Transform Code Using Spoon in Java
Learn how to use the Spoon library to analyze and modify Java source code.
JAVA_HOME vs PATH Environment Variables
Explore the differences between using the JAVA_HOME and PATH environment variables.
Differences Between Classpath and Sourcepath
Learn some key differences between sourcepath and classpath. Explore their usage in the command line.
Java Weekly, Issue 483
Migrating to Hibernate 6, lots of new releases and sending billions of messages per minute, over TCP/IP. A good week 🙂
Difference Between parallelStream() and stream().parallel() in Java
Explore the ways we can create parallel Streams from a Collection data source.
Java Weekly, Issue 482
Java 20 is out! Nuff said 🙂
Custom Constructor in Java Records
Learn how to create custom constructors for Java Records and the benefits they provide.
Java Weekly, Issue 479
Java security API, Kotlin 2.0 compiler, testcontainers, web apps with Loom, safer refactorings, and write stuff down!
Cassandra – Object Mapping with DataStax Java Driver
There are a few ways to map objects and operations to Cassandra. We look at how to use the DataStax driver to achieve object mapping, queries and native functions.