I need some help if you have a minute. We have an app in production that's behaving poorly. We know we have a NOT thread safe condition where two threads running through the same servlet are looking at the same value in an instance variable (userName in the example below). So, for example, two threads in the class first are looking at a single copy of userName.
But what about this - can one thread in first and one thread in second be looking at the same instance of userName? if baseclass is abstract, then are there two instances of userName? one when new is called for class first and one when new is called for class second by the servlet container? know what i mean?