Method jakarta.servlet.http.HttpSession#getAttribute should be generic typed
- Dominant language
- Java
- Stars
- 325
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
In Jakarta 11, the return type of the jakarta.servlet.http.HttpSession#getAttribute method is Object.
It would be better if the return type could be defined:
`var attribute = httpSession.getAttribute("attribute");`
The type signature would look like this:
` T getAttribute(String name)`
Contributor guide
Research direction
The issue targets the jakarta.servlet.http.HttpSession#getAttribute declaration; start by reading its current API definition and the Jakarta Servlet compatibility guidance. Determine whether the proposed generic signature is appropriate for Jakarta Servlet 11 and verify the decision against API compatibility requirements; done means the signature question is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100