[Kde-bindings] Errors compiling KEditListBox.java in svn source
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Wed Oct 26 03:19:07 UTC 2005
Interesting, it compiles fine with a 'gcj -C' command, but I assume you're
using a Sun javac which looks like it doesn't support forward references.
I've just fixed the source for now by moving the line as you suggest, and I
might try to fix the code generation sometime.
-- Richard
On Wednesday 26 October 2005 04:38, Kevin Gilbert wrote:
> Hi,
>
> I get an error compiling the svn source for
> kdebindings-3.4.92/kdejava/koala/org/kde/koala/KEditListBox.java.
>
> I don't know how this file is generated, but the statement at line 27 is
>
> ==============
>
> public static final int All = Add|Remove|UpDown;
>
> ==============
>
> which is before the definitions of Add, Remove and UpDown. This causes the
> following errors:
>
> ==============
>
> KEditListBox.java:27: illegal forward reference
> public static final int All = Add|Remove|UpDown;
> ^
> KEditListBox.java:27: illegal forward reference
> public static final int All = Add|Remove|UpDown;
> ^
> KEditListBox.java:27: illegal forward reference
> public static final int All = Add|Remove|UpDown;
> ^
> 3 errors
>
> ==============
>
> Moving that line down after those definitions corrects the errors - but as
> this file is generated it does not solve the problem. I'll leave that issue
> in the more capable hands of those who know what they're doing.
>
> Cheers,
>
> Kevin
More information about the Kde-bindings
mailing list