https://bz.apache.org/bugzilla/show_bug.cgi?id=69914

--- Comment #5 from Brice <[email protected]> ---
I think you're right, Mark. We were surprised by this "break" while upgrading
from Tomcat 10 to 11 because we had added bean style getter methods to Records
as a workaround. But now that EL 6.0 natively recognizes Record properties we
can "go with the grain" and use Record properties in Records and bean
properties in beans.

This works (and doesn't mix paradigms):

public record Person(String firstName, String lastName) {
  public String fullName() {
    return firstName + " " + lastName;
  }
}

Then in JSP: ${person.fullName}

Knowing how this works we have a happy path forward. Thank you for taking the
time to provide additional context and explain the situation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to