[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [stellation-res] Windows Issues
|
On Tuesday 20 August 2002 09:09 am, Jonathan Gossage wrote:
> In the process of testing the MySQL integration I have discovered a Windows
> based issue that I will have to deal with before proceeding further with
> the MySQL testing.
>
> There are a number of places in Stellation where file paths are stored in
> String objects and these objects are then compared with the equals()
> method. The problem is that Windows file paths are case insensitive while
> Unix file paths are case sensitive. This means that these comparisions
> should be done in a platform sensitive manner.
Argh. That's annoying.
We originally used file objects everywhere, but there were some frustrating
problems involving symbolic links on Unix when you use File's. So Dave
switched the code to use Strings most of the time, and only use File object's
when he had to... But that's error-prone with respect to file separators.
It's just one of those places where the lowest-common-denominator
functionaliy of Java bites us.
Anyway... Hold off on trying to fix this. Dave is in the middle of a very
substantial rewrite of the workspace code. There's all new code for pathname
management, which will be checked in sometime soon. So wait until the new code
hits CVS, and see if the rewrite fixes this. There's a good chance that it
will, and if it doesn't, the new code should be easier to fix than the old.
-Mark
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx ------- Personal Email: markcc@xxxxxxxxxxx