Neil de Hoog wrote:
> 
> Trying to compile the webdavgui classes I some errors:
> 
>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\filechooser\plafui\SPMetalFileChooserUI.java:244: The type
> javax.swi
> ng.plaf.metal.MetalFileChooserUI.FileRenderer to which the member
> getListCellRen
> dererComponent belongs is not accessible from inner class
> org.apache.webdav.ui.f
> ilechooser.plafui.SPMetalFileChooserUI. MetalFileRenderer.
>     [javac]         super.getListCellRendererComponent(list, value,
> index, isSel
> ected,
>     [javac]                                           ^

These errors I have no idea about. They go away if you just run javac
directly on the two files in question. Perhaps there's something really
broken in the ant build file causing this? I ended up just compiling
these two files directly, and letting ant finish the rest. Works fine
then.

If _anyone_ can shed light on what might be causing this, please tell
me! 


>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\filechooser\plafui\SPWindowsFileChooserUI.java:246: The
> type com.sun
> .java.swing.plaf.windows.WindowsFileChooserUI.FileRenderer to which
> the member g
> etListCellRendererComponent belongs is not accessible from inner class
> org.apach
> e.webdav.ui.filechooser.plafui.SPWindowsFileChooserUI.
> WindowsFileRenderer.
>     [javac]       super.getListCellRendererComponent(list, value,
> index, isSelec
> ted,
>     [javac]                                         ^
>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\LoginFrame.java:239: Incompatible type for method. Can't
> convert jav
> a.lang.String to org.apache.commons.httpclient.Credentials.
>     [javac]   proxyServerName, proxyPort);
>     [javac]   ^
>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\LoginFrame.java:239: Incompatible type for method. Can't
> convert int
>  to boolean.
>     [javac]   proxyServerName, proxyPort);
>     [javac]                    ^
>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\lab\MainFrame.java:207: Incompatible type for method.
> Can't convert
> java.lang.String to org.apache.commons.httpclient.Credentials.
>     [javac]   proxyServerName, proxyPort);
>     [javac]   ^
>     [javac]
> D:\usr\people\jakarta-slide\src\contrib\webdavgui\src\java\org\apach
> e\webdav\ui\lab\MainFrame.java:207: Incompatible type for method.
> Can't convert
> int to boolean.
>     [javac]   proxyServerName, proxyPort);
>     [javac]                    ^
>     [javac] 6 errors
> 
> is this package supposed to be compilable and if so what should I do
> to fix these errors?

This error is known about, I haven't had time for a proper fix.
Basically, we needed proxy support, so I hacked it into the http client
code. It seems to work, but it really is a nasty hack. I can send you
diffs if you want to do the same, but we really need to get this
resolved properly some time soon. 

Michael

Reply via email to