Jikes fails to compile kaffe classes

Godmar Back gback at cs.utah.edu
Mon Aug 24 09:10:00 PDT 1998


 So it seems to pizza folks have gotten more stringent in their
adherence to the java spec;  what is needed is that someone looks up
in the jdk doc what attribute these methods should have (it is safe to
assume that Sun specified attributes that would allow them to be compiled);
and then submits a patch, and that's all there is to it.

	- Godmar

> 
> 
> 
> 
> Hello!
> 
> Do you think that pizza compiles Kaffe classes?
> 
> [/home/proski/local/src/kaffe/libraries/javalib] ./makeJava all
> Compiling ./java/net/PlainDatagramSocketImpl.java
> [parsing ./java/net/PlainDatagramSocketImpl.java 273ms]
> [loading lib/java/io/IOException.class]
> [loading lib/java/io/FileDescriptor.class]
> [loading lib/java/net/DatagramSocketImpl.class]
> [loading lib/java/lang/Object.class]
> [loading lib/java/net/SocketOptions.class]
> [loading lib/java/net/SocketException.class]
> [loading lib/java/net/InetAddress.class]
> [loading lib/java/net/DatagramPacket.class]
> [loading lib/java/lang/Exception.class]
> [loading lib/java/lang/Throwable.class]
> ./java/net/PlainDatagramSocketImpl.java:42: function socketSetOption(int,
> java.l
> ang.Object) in class java.net.PlainDatagramSocketImpl cannot override
> function s
> ocketSetOption(int, java.lang.Object) in class java.net.DatagramSocketImpl
> with
> weaker access privileges; was public
>   protected native void socketSetOption(int option, Object value);
>                         ^
> ./java/net/PlainDatagramSocketImpl.java:43: function socketGetOption(int)
> in cla
> ss java.net.PlainDatagramSocketImpl cannot override function
> socketGetOption(int
> ) in class java.net.DatagramSocketImpl with weaker access privileges; was
> public
> ide function socketGetOption(int) in class java.net.DatagramSocketImpl with
>  weak
> er access privileges; was public
>   protected native int socketGetOption(int option);
>                        ^
> [loading lib/java/lang/Boolean.class]
> [loading lib/java/lang/Integer.class]
> [loading lib/java/lang/Number.class]
> [loading lib/java/lang/String.class]
> [loading lib/java/net/UnknownHostException.class]
> [loading lib/java/lang/Error.class]
> [total 2394ms]
> 2 errors
> not done
> There were errors while compiling:
> ./java/net/PlainDatagramSocketImpl.java
> 
> The same in few words means that socketGetOption and socketSetOption are
> declared as protected in java/net/PlainDatagramSocketImpl.java and as
> public in java/net/PlainSocketImpl.java. Is this the problem you have with
> Jikes?
> 
> pizza 0.39g, Kaffe latest from CVS, gcc-2.7.2.3, HP-UX 10.20.
> 
> Pavel Roskin <pavel.roskin at ecsoft.co.uk>
> 
> 
> 



More information about the kaffe mailing list