sviperll commented on issue #7167:
URL: https://github.com/apache/netbeans/issues/7167#issuecomment-2079335328

   > javac api returns those methods as final, which is why NB isn't offering 
overrides for them:
   > the "getters" of the record components are seen as already overridden, so 
those aren't offered either.
   
   Yes, but I think NB should request methods from supertype-only, not methods 
from this class. I guess this problem already existed for enum before the 
introduction of records, it is totally fine to override `toString`-method of an 
enum, but people doesn't do it normally. But for records this becomes a 
problem, because you do want to override `hashCode`/`equals` of a record 
often-enough.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to