Closed GoogleCodeExporter closed 8 years ago
is this update fix it?
http://code.google.com/p/gstreamer-java/source/detail?r=400
Original comment by lfar...@gmail.com
on 24 Sep 2010 at 11:12
No - r414 still has the problem.
The problem is that multiple classes in the same type hierarchy (e.g.
NativeObject and GstObject) have implemented the objectFor() static method,
which type-erases to the same method signature, but there is an ambiguous
mapping of generics at compile time (the "yet neither overrides the other"
bit). I'm told that it's a bug as per the Java spec so NetBeans correctly
rejects it, even though javac allows it.
The simple solution is to delete the objectFor() methods in the superclasses
such as GstObject, MiniObject, etc. I've done this for r414 - see attached
patch.
Original comment by naskies@gmail.com
on 13 Oct 2010 at 2:58
Attachments:
fixed by another patch in head.
Original comment by lfar...@gmail.com
on 19 Oct 2010 at 2:11
I just checked out r435 from the trunk but it doesn't appear to be fixed - same
errors in NetBeans 6.9.1.
Original comment by naskies@gmail.com
on 25 Oct 2010 at 2:15
r436
Original comment by vitorl...@gmail.com
on 25 Oct 2010 at 10:16
Original issue reported on code.google.com by
mfeldma...@gmail.com
on 2 Sep 2010 at 10:24