No - the line correctly describes how the join() method actually works.
If you mean that you think that the method should have been designed differently, well, maybe so. Letting 0 signify "forever" seems a little counterintuitive. But what would be the point of calling join(0) if 0 means do not wait? Easier to just not call the method at all, no? Meanwhile, they needed an easy way to say "wait forever", and using zero or negative numbers seems an easy way to do this.
In general, there are a lot of things in Java that could have been done differently, but weren't, and it's possible to spend a lot of time worrying about all these things. But it often isn't very productive or interesting. This issue in particular doesn't seem like a big problem, so I recommend not worrying about it.
Joined: Sep 12, 2009
Tanks Mike Simmons
I completely agree with your thoughts and last tip too....
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com