Resending by removing the link as I see it "scrubbed"Hi,(a) Given a record, record R(int a){}, I see the (implicit) final modifiers propagated to implicit methods hashCode() and equals()[javap output]public final boolean equals(java.lang.Object);
However, toString() does not get the same ->
public java.lang.String toString();
(b) Adding an explicit modifier, say strictfp adds this to all threestrictfp record R(int a){}
public strictfp java.lang.String toString();public final strictfp int hashCode();
public final strictfp boolean equals(java.lang.Object);
I didn't see this explicitly specified in the Records JLSSpec needs change? Or is there a newer version of spec ?Regards,Manoj
- [records] propogating modifiers for implicit methods Manoj Palat
- Re: [records] propogating modifiers for implicit metho... Vicente Romero
- Re: [records] propogating modifiers for implicit metho... Manoj Palat