1,918,274 questions
-1
votes
0
answers
24
views
I'm unable to implement auto focus in Iframe [closed]
I'm designing custom automation report(Playwright with Java using Junit). Encountering issue where I'm unable to implement "auto focus" when I click on the scenario in the table. Focus ...
0
votes
0
answers
30
views
JRecord - Build issues while trying to install package through Maven POM
I am trying out way to install JRecord and CB2XML in my spring boot application. I tried to use the package through POM xml by mentioning the dependencies.
<dependency>
<...
0
votes
0
answers
39
views
Translate escaped string from XML file
Let's assume I have the string "F%c3%bcr%20alle" in a xml file. It should translate to "Für alle". I can do the unescaping with JavaScript:
let decoded = decodeURIComponent("F%...
0
votes
0
answers
47
views
Mapping an entity with an embedded key
There is a class with an EmbeddedId.
@Entity
@Getter
@Setter
@Table(name = "indicator_values")
public class IndicatorValue {
@EmbeddedId
public IndicatorValueId id;
@Column(...
2
votes
0
answers
61
views
Can JavaFX WebView show webp images?
I use JavaFX 26-ea+6 on Ubuntu 20.04 and it seems that WebView can't show webp images. This is my code:
public class TestFx extends Application {
@Override
public void start(Stage ...
1
vote
0
answers
40
views
Firestore only updates when accessed through a specific Android activity
I'm working on an Android app where users can add and remove restaurants from their favourites via the RestaurantPage activity. When I access the RestaurantPage activity from the UserFavourites ...
0
votes
1
answer
36
views
Twilio Signature validation for ConversationRelay WebSocket with Java SDK
In https://github.com/enola-dev/enola/pull/1927 I attempted to add signature validation for WebSocket authentication security to my https://github.com/enola-dev/twilio-conversation-relay-java Java ...
Best practices
0
votes
4
replies
65
views
Looking for workaround for library with missing interface
I have a Java library (FIHR) where there are conventions in a bean class hierarchy that were NOT formalized as an interface.
For example many subclasses have a getStatus() property but there is no ...
2
votes
1
answer
50
views
ForkJoinPool and RecursiveTask lead to deadlock when join is called in a different thread than fork
The program below never ends:
void main() {
try (Fibonacci fibonacci = new Fibonacci()) {
IO.println(fibonacci.calculate(9));
}
}
public static class Fibonacci implements ...
1
vote
1
answer
43
views
Is there a way to automate user input with JLine's LineReader?
When handling user input through Scanner(System.in), you can use System.setIn() to automate user input.
Like this:
package edu.ntnu.idi.idat;
import java.io.ByteArrayInputStream;
import java.io....
0
votes
2
answers
95
views
How to efficiently flush and write large amounts of data to a file using BufferedWriter in Java? [closed]
I'm working on a Java project where I need to write a large number of lines to a file. I know BufferedWriter can improve performance compared to writing character by character, but I am unsure about ...
-4
votes
0
answers
63
views
Getting incorrect output in my Java solution for HackerRank “A Very Big Sum” [closed]
I am trying to solve the "A Very Big Sum" problem on HackerRank using Java. The task is to sum large integers (long values), but my output does not match the expected answer.
Here is my ...
2
votes
1
answer
122
views
Is it possible to load a function symbol from an executable
I have 2 files:
foo.c:
#include <stdio.h>
int Main(int a) {
printf("A%dB",a);
}
int main() {
return Main(1);
}
bar.c:
extern int Main(int);
int main() {
return Main(2);
}
...
-3
votes
0
answers
38
views
mesibo Compilation Error: Unresolved reference 'MessageParams' in Mesibo Android SDK 2.7.19 (Kotlin)
I am integrating the Mesibo Android SDK (version 2.7.19) into my Kotlin application. I need to implement the Mesibo.MessageListener interface to receive real-time messages, but I am facing a ...
0
votes
0
answers
69
views
Full screen intent on Lock screen stopped working when Samsung Android upgraded to 14/145/16
My VoIP Android app shows a full-screen incoming call UI using Android’s full-screen intent (FSI).
On Samsung Android 16, the FSI works perfectly when installing the debug build — but fails completely ...