Re: Useless long->string->long conversion

2024-04-23 Thread Sean Mullan
It is probably fixable by storing the long as a transient field and overriding writeObject and computing the String as needed in other methods, but I am somewhat skeptical if it is worth it as it would make the implementation a bit more complex. --Sean On 4/19/24 4:38 AM, Mkrtchyan, Tigran wr

Useless long->string->long conversion

2024-04-19 Thread Mkrtchyan, Tigran
Dear JDK Security-devs, Recently, during profiling, I noticed that UnixNumericUserPrincipal has useless conversion between long and string: ``` private String name; public UnixNumericUserPrincipal(long name) { this.name = Long.toString(name); } /** * Return the use