1,916,303 questions
0
votes
0
answers
29
views
Metamodel generator loses generic type parameter for Set<String> in Hibernate 7
In Hibernate 6, a field annotated with @Column @NotNull private Set<String> issueTypeLabels mapped to a Postgres VARCHAR ARRAY column generated:
public static volatile SingularAttribute<...
0
votes
1
answer
33
views
Problem with searchable combo box in Java Swing
I have made a searchable combo box for use in a Java Swing program.
Here is how I would like it to work:
When clicked, it opens up the options list and enables typing in the box to let the user ...
Advice
0
votes
4
replies
110
views
How do I get this Java Applet game with multiple .jar and HTML files to run?
I want to play this obscure Java-based game from 2000, one that was graciously provided by the Internet Archive (https://archive.org/details/diamond-mine-java).
The contents of the game's files look ...
0
votes
1
answer
47
views
How to propagate Correlation ID from ThreadLocal to Kafka Headers in a Spring Boot 3 distributed system?
I am implementing an observability layer in a Spring Boot 3.2.0 ecosystem to ensure distributed tracing across multiple microservices.
I have a ContextInterceptor that captures a correlation-id from ...
1
vote
1
answer
60
views
Hibernate is not using custom implementation of PhysicalNamingStrategy
In my unit test I want to use my custom implementation of PhysicalNamingStrategy:
public class CustomPhysicalNamingStrategyStandardImpl implements PhysicalNamingStrategy {
@Override
public ...
-1
votes
0
answers
31
views
how to detect the aop time when using arthas trace command
I am using arthas https://github.com/alibaba/arthas to tracing the function time, this is the command look like:
trace com.baomidou.mybatisplus.core.mapper.BaseMapper selectOne -n 5 --skipJDKMethod ...
0
votes
2
answers
55
views
Cannot set initial app window size in javafx
I'm not able to set the initial window size. The app always displays 200x200.
public class tcase extends Application
{
@Override
public void start(Stage primaryStage)
{...
Advice
1
vote
2
replies
114
views
In 2026, is MERN stack still a good choice for getting a software job, or should I switch to Java Spring Boot?
I am currently a 3rd-year Computer Engineering student from a tier-3 college in India. I know basic Java, DSA, and I have started learning web development.
I am confused about career direction because ...
-1
votes
0
answers
57
views
Flyway is not creating the tables when the application starts
I configured my spring application to interact with flyway for a data migration but flyway seems not to be working. My application.properties file is in the resources package
spring.application.name=...
Advice
0
votes
3
replies
126
views
How to measure the memory cost of lambdas in Java 25?
If I run Java 25 JShell with Java Object Layout library (JOL) without any JVM settings and measure the memory cost in bytes of a Predicate<String> I see the following:
$ jshell --class-path ~/....
1
vote
2
answers
138
views
Virtual Threads does not Stop after Application Shutdown in Spring Boot
I use:
@Configuration
public class AsyncConfig {
@Bean(name = "virtualExecutor")
public ExecutorService newExecutor() {
return Executors.newThreadPerTaskExecutor(
...
2
votes
2
answers
114
views
how Spring creates an object using the reflection if the class has only one arg constructor
I am new with Spring still learning it and I see a post that when I use @Autowired in a class but this post not specified where the annotation is Spring use reflection to create the bean and then ...
0
votes
1
answer
61
views
Stop Hibernate adding associations to SQL select when using legacy Criteria API?
When using hibernate legacy Criteria API and filtering on a `many-to-one` association while only retrieving the base entity type, the produced SQL still adds all columns of the association to the ...
1
vote
2
answers
97
views
Conditionally create bean in spring XML based on property that isn't known until the app starts
I have a quite old Java spring app with beans defined in XML. I need to conditionally switch off one of those beans (it's a dbcp2 data source to a database server that's being shut down), so what I'd ...
Advice
0
votes
5
replies
167
views
Where exactly are static variables are located in Java
So I was looking up java interview questions and this one got me confused. I checked on Geek for Geeks and it says that they are stored in Metaspace with Class'es meta info and bytecodes while ...