Hi Boris,

At 09:36 PM 2/8/2007, Boris Unckel wrote:
>just for my understanding:
>
>Is it necessary that two markers with the same name are the same objects?
>Or in other words
>Marker a = Marker.getMarker("Boris");
>Marker b = Marker.getMarker("Boris");
>a.equals(b) == true
>==> a == b ?

Yes, a==b needs to hold.

>If a == b is allowed to be false:
>The markers could be hold with soft references and the JVM can decide
>whether to garbagecollect them or not.

Markers can have children, so they are a bit more than plain old strings.

>Regards
>Boris

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

_______________________________________________
user mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/user

Reply via email to