[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eclipse 3.0

From: Mark Wielaard
Subject: Re: Eclipse 3.0
Date: Sat, 03 Jul 2004 02:09:33 +0200


On Fri, 2004-07-02 at 23:38, Mark Wielaard wrote:
> Found this one. For some reason the code looks like this:
>                  if (url.getPath() != null)
>                  // A call to a URL constructor has been made
>                  // that uses an authorized  URL as its context.
>                  // Null out bundleEntry because it will not be
>                  // valid for the new path
>                      bundleEntry = null;
> URL.getPath() is a new 1.3 method. Which has the following (clarified!)
> documentation in 1.4: "the path part of this URL, or an empty string if
> one does not exist". And we follow that documentation and never return
> null so this if statement always succeeds.
> But getPath() returning null instead of the empty String doesn't help
> much. It seems the are multiple instances of the
> org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler
> It seems this is not correct. I haven't found how/why there are multiple
> instances of this URLStreamHandler.

OK, finally found it. Eclipse does some really nasty URLStreamHandler
tricks. It seems to depend on us NOT trying to find a new
URLStreamHandler when the URL.set() method is called. Kind of makes
sense if the protocol isn't changed. So doing something like:

  if (!this.protocol.equals(protocol))
      URLStreamHandler protocolHandler = getURLStreamHandler(protocol);

Gets us a little further.

Then you will hit the fact that we don't have a real nio FileLock yet.
But you can work around that with -vmargs -Dosgi.locking=none

Then we hit:

javax.xml.transform.TransformerFactoryConfigurationError: Factory class
com.icl.saxon.TransformerFactoryImpl not found
   at javax.xml.transform.ClassStuff.createFactory (

Since they decided not to automagically include their own XML stuff
since M9... So you need libxmlj or something like xalan added to your
bootclasspath. I tried that, but I now have jamvm crashing. Rebuilding
libgcj with the above patches now. But first some sleep.

Happy Hacking!


Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]