Steve Dyke wrote:But if I then use logOn.getObject().userid for example in other places in my code it will create another User object.
Do I set the public User getUserObject() to final?
The docs wrote:The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time
Nyeng Gyang wrote:I have thought of employing yet another approach to demonstrate that your take on my suggested correction is wrong. However, until I am able to confirm that this your misunderstanding of the suggested correction is due to genuine, sincere misunderstanding, rather than deliberate crafty obfuscation, I fear that I will only waste my time making any such attempt at supporting and clarifying my claim that you have decidedly gotten my suggested correction wrong.
Nyeng Gyang wrote:this claim of mine is as follows: “It is a compile-time error to throw an exception of class E in a try block and place an exception of a subclass of class E in the corresponding catch block”).
Nyeng Gyang wrote:(2) The correction I have suggested needs to be made to the JLS rule.