RE: [Ikvm-developers] Compile error
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2004-03-31 08:11:39
|
Brian Sletten wrote: > After recent updates, there is a compile error in=20 > ikvm/classpath/gnu/java/net/protocol/ikvmres/Handler.java: Ugh. The IResourceReader interface uses return type covariance. I hadn't noticed this problem, the version of jikes I use (1.19) doesn't seem to mind. What version are you using? > (which reminds me, you might want to put a <mkdir dir=3D"release"/> > in the IK.VM.JNI/ik.vm.jni.build file) Will do. > IDictionaryEnumerator is a more concrete type of IEnumerator, but you=20 > don't actually muck around with the definition of classes like=20 > IResourceReader, right? I don't, but maybe I should [1]. On the other hand, since Java 1.5 also supports return type covariance, the problem will eventually go away by itself. Let me know if upgrading to jikes 1.19 doesn't fix the problem. Regards, Jeroen [1] There is actually a hack to make classes that privately implement interface methods work. For Java compilers to accept these classes (if they're not abstract) a non private method that implements the interface method needs to exist. |