Skip to main content
0 votes
0 answers
73 views

It seems Eclipse still doesn't generate full Javadoc templates for records — or am I missing something? I'm using Eclipse 2025-06 with Java 21. When I type /** above a record, Eclipse only completes ...
Martin Fernau's user avatar
1 vote
2 answers
213 views

For immutable classes, I like to set the hashCode value when the object is constructed. (I sometimes do this for the toString value too.) I want to do this in a Record as well. For example, I have a ...
MiguelMunoz's user avatar
  • 5,153
1 vote
1 answer
151 views

If my object is a record this is not working : value = BeanUtils.getProperty(object, property); I guess it is looking for a getter which does not exist. Is there an alternative for java 17, that will ...
jpprade's user avatar
  • 3,726
1 vote
1 answer
2k views

Based on all the documentation I have read the following code should not work;Java records are immuatble and would not work with JPA. However the following code works. I can succesfully retrieve data ...
solutionsDeveloper's user avatar
0 votes
0 answers
225 views

Since updating to Spring Boot 3, Java record RequestBody behaves strangely. While this is filled properly from json request: public record ExampleRequestDto(@JsonProperty("exampleData") ...
user3414980's user avatar
1 vote
1 answer
8k views

Java came with records which are really useful and can avoid use of library like Project Lombok. But can someone please help me understand why records does not support Builder pattern by default? I ...
JavaGuy's user avatar
  • 1,201
0 votes
0 answers
794 views

I'n new in Java and I'm having this error deserializing a JSON to a Java record. This is my record: imports... @JsonIgnoreProperties(ignoreUnknown = true) public record Character( @JsonAlias(&...
Alejandro Castellanos's user avatar
2 votes
1 answer
2k views

I'm trying to use Jackson's feature to deserialize unknown fields into a map, using @JsonAnySetter. This works fine for a Java class with the field annotated with @JsonAnySetter, but does not work ...
Kkkev's user avatar
  • 4,955
0 votes
2 answers
1k views

Why is not possible to create a local record that contains fields corresponding to the generic type of the method? Not working example: public class Test { <T> void foo(T param) { ...
Lukas Betz's user avatar
0 votes
1 answer
2k views

I hope is there someone who could help me to understand this error. My problem I have a problem usign Record with @ConfigurationProperties: when I start the application I get this error: Caused by: ...
Alexxxx's user avatar
  • 67
1 vote
2 answers
1k views

I want to use composition pattern and create a record from another record type in Java but I have some problems with the usage, maybe I am misusing the record in Java, could you please guide me, how ...
Tashkhisi's user avatar
  • 2,292
1 vote
0 answers
2k views

I am using Java 21, and trying to convert a String from a REST response to a record. However, I am getting an error: org.testcontainers.shaded.com.fasterxml.jackson.databind.JsonMappingException: Can ...
Ebad's user avatar
  • 448
0 votes
1 answer
729 views

I am sending a HTTP REST GET request to an API with standard Java 17 like this : HttpResponse<String> response = httpClient.send(request, BodyHandlers.ofString()); and I can see the with ...
Stanislav Ivanov's user avatar
6 votes
2 answers
187 views

Short Question: What is the best way to populate a Java FX table view with data from a database by using a record? (rather than a typical object class with getters and setters) Full question: I have ...
GQ16's user avatar
  • 131
24 votes
1 answer
6k views

I recently discovered Java records, and it was amazing to learn about their existence and purpose. However, I began to wonder if they are essentially just classes behind the scenes. Does this mean ...
kalx11's user avatar
  • 498

15 30 50 per page
1
2 3 4 5
9