1,915,016 questions
Score of 3
1 answer
114 views
How to modify traffic light size in Swing
I am trying to make a custom UI application in Swing. I've searched far and wide and have come up to the conclusion that it is not possible to integrate Swing into the new Apple UI (windows, toolbars, ...
Score of 0
1 answer
82 views
Migration from @MockBean to @SpyBean breaks answer chain containing doThrow()
In my project I have an integration test targeted to verify behavior when multiple messages are sent to external system and some of them succeed and others fail. Currently it's implemented with @...
Score of -3
0 answers
140 views
Java thread-safe seeded random [duplicate]
I want to make a per-thread, thread-safe, seeded random number generator in Java.
Usage: I am using it for random picking of resources off of a CSV. I need it to be threadsafe because it will be a ...
Score of 0
0 answers
86 views
How to fix this error "Failed to apply plugin 'dev.flutter.flutter-gradle-plugin' "?
I have been for the error for an hour and tried multiple gradle packages to rectify this error.But, I don't know what to do .
I have updated my flutter stable.Done all that.But none is working and ...
Score of -4
0 answers
102 views
Android Studio Java Compiler Issue with ! operator
I have a simple if-else code snippet which does not seem to evaluate the ! operator correctly. Android Studio 2026.1.2 Patch 1. Emulator API 33. Here are code images so you can see the debugger ...
Score of -3
1 answer
141 views
How to reverse an array using recursion?
I have written this code to perform reverse operation of an array using recursion, initial value for the variable startingIndex will be 0, which indicates swapping starts from first element of the ...
Score of 2
1 answer
81 views
Why does my project's build output require a JVMCI compiler only when built locally/on Windows?
I'm one of several developers on an open-source project using Java and IntelliJ Idea that has recently moved to using Gradle builds, and I've encountered a problem when trying to convert over. While ...
Score of 2
3 answers
158 views
How to generate a stream of random booleans (or 2-valued enums)
I recently watched a video by mathematician Matt Parker about approximating the number π by using a series of coin flips. I decided to play around with a Java Stream-based implementation.
One thing I ...
Score of -3
0 answers
151 views
Why am I getting a 'No such method' exception when trying to use JavaFX? [closed]
I have a project written in java, using java1.8.0_202 - I can compile and run my project, when when I undertake a certain action I get the following error:
Exception in thread "JavaFX Application ...
Score of 0
0 answers
132 views
Android 15+ socket connection terminates after about 4 seconds
I have an app that acts as a conduit between a primary app and a PC program. The conduit app responds to a broadcast from the primary app by opening socket communications with the PC program. It then ...
Score of -8
2 answers
273 views
How to solve solution with binary search
Shepherd has n dogs and m sheep. The ith dog is described by a number bi, and the jth sheep is described by a number aj.
The shepherd wants to send some sheep out for a walk under the supervision of ...
Score of 3
0 answers
126 views
Best practice to validate integration tests response
We had a discussion about what is a better way to validate response when testing API of backend services. In particular how to write integration tests.
First approach: generate expected JSON as ...
Score of 0
0 answers
62 views
Spring-ldap LdapClient and AssertionRequestControl over .modify() and .unbind() operations (TOCTOU)
TLDR:
I want to use LDAP Assertion Control with LdapClient when updating/removing entries, is this yet possible?
Background:
I was hit with a vulnerability finding that I'm expected to fix and I have ...
Score of 0
2 answers
67 views
keycloak.adapters.saml.jakarta.servlet.SamlFilter error after moving from jboss-eap-7 to boss-eap-8
I am using RedHat OpenShift to build and deploy my web application usa.
My main task is to upgrade from jboss-eap-7/eap74-openjdk11-openshift-rhel8:7.4.11 to jboss-eap-8/eap81-openjdk17-builder-...
Score of 3
3 answers
138 views
Maven build errors for Java app referencing org.controlsfx
Although this is a standalone question, it is a continuation of Error when importing ControlsFx SpreadsheetView into my FXML-File?
I am trying to create a basic app in Java with JavaFX, utilizing org....