Crystal Zeng wrote: it is still possible to covert Thread A to Thread B and let Thread B proceed to implement non-synchronized codes ,such as statement 2?
Stephan van Hulst wrote:If one thread has the object lock because it entered a synchronized method, other threads can still access that object's methods and fields as long as the methods are not synchronized, and the field accesses not inside a synchronized block.
public abstract PathMatcher getPathMatcher(String syntaxAndPattern)
Returns a PathMatcher that performs match operations on the String representation of Path objects by interpreting a given pattern. The syntaxAndPattern parameter identifies the syntax and the pattern and takes the form: