1,914,590 questions
Score of 0
0 answers
105 views
Pass input from a component A to component B without adding B to A
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JFrame;
import javax.swing.JPanel;
import ...
Score of -4
0 answers
51 views
How to Implement OAuth 2.0 for Service-to-Service Communication in Spring Boot Microservices? [closed]
I have a Spring Boot microservices project where service-to-service communication is currently secured using a client-id and client-secret generated by an authentication service.
The problem is that ...
Score of 1
0 answers
70 views
Spring Boot 4.1.1 Micrometer tracing context is not propagated via gRPC
I use Spring Boot 4.1.1 with OTEL org.springframework.boot:spring-boot-starter-opentelemetry and gRPC org.springframework.boot:spring-boot-starter-grpc-client/server starters. In my project two ...
Score of 0
2 answers
168 views
What is a good design for custom extensions to a Java class?
I maintain a Java library and want to add a facility for user-defined extensions to a class, so that users of that class can attach extensions of their choice to any instance of that class. The ...
Score of 4
3 answers
102 views
Does @NullMarked package imply non-nullablity on a field level?
I have difficulties in understanding the semantics of JSpecify and its annotations.
Assuming I have package-info.java that contains:
@NullMarked package my.pkg
import org.jspecify.annotations....
Score of -6
0 answers
107 views
How to multiplex virtual threads on fixed number of platform threads? [duplicate]
Executors.newVirtualThreadPerTaskExecutor is using default scheduler and it multiplexes on platform thread of default size as 256 thread (jdk.virtualThreadScheduler.maxPoolSize).
I have a multi-tenant ...
Score of 0
0 answers
65 views
VSAM KSDS paginated HTTP reads fail with ClosedChannelException at high offsets — z/OS Liberty buffers entire response before sending first byte [closed]
We are reading a 2M+ record VSAM KSDS dataset from a Java Spark job via a custom REST API running on IBM z/OS Liberty. The Java client paginates using &offset=N&limit=5000. The job processes ...
Score of 2
2 answers
154 views
Is it possible to make a component of a FlowLayout take up all available space?
I'm trying to create a JPanel that uses a WrapLayout - which extends FlowLayout - to flexibly lay out its children and create a new row when needed. I have a JTextPanel at the end that creates a new ...
Score of 3
3 answers
152 views
How to rename an IntelliJ project? [closed]
Every time I've tried to rename a project, it either doesn't rename all the files which then messes up how my files are run. I've tried searching for the button on "Project Files", but none ...
Score of -2
0 answers
243 views
How do I combine 2 instances of java.util.regex.Pattern? [closed]
I have 2 different instances of java.util.regex.Pattern. How do I combine them so that both apply?
My use-case is that I am building a search tool, and I am giving users the ability to add all sorts ...
Score of -3
0 answers
133 views
Recommended approach for configurable HTTP traffic logging in Spring WebFlux? [closed]
I have a Java Spring WebFlux application with several REST controllers and WebClient instances that communicate with external APIs.
I need to implement HTTP traffic logging for debugging purposes, ...
Score of -2
2 answers
209 views
How do you solve this Gson issue related to LocalDate? [closed]
I am getting this issue on my Local setup when my response is processed using Gson. The code works on my test environment. I use Java 17.
Failed making field 'java.time.LocalDate#year' accessible; ...
Score of 0
1 answer
103 views
How do I change the Action attributed to the Tab key, when in a JTable? [duplicate]
Currently, when using a JTable, the tab key simply moves me to the next cell over.
I don't want that behaviour -- instead, I want tab to move me to the JButton in the next panel over.
How would I ...
Score of 0
1 answer
122 views
Accessing Java 25 cacerts in Azure App Service
I'm struggling to get a Java 25 application to launch on Azure App Service (Web App). looking at the logstream, I'm seeing...
2026-09-06T23:24:09.4154676Z ... 117 common frames omitted
2026-09-...
Score of 1
2 answers
245 views
Why is Gatherer not marked as a functional interface?
Some interfaces such as Gatherer.Integrator are marked as @FunctionalInterface, but the Gatherer interface, which too has only one abstract method is not marked as such.
Any idea why?
I understand why ...