elzaksspro / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

Compilation problem #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the GstIterator.java file in line 63 It gives me the following
compilation error:

The method objectFor(Pointer, Class, boolean) is ambiguous for the type
GstObject   gstreamer-java/src/org/gstreamer    GstIterator.java    line 63

If I comment the call as I show below everything seems to work.

        private T getNext() {
            PointerByReference nextRef = new PointerByReference();
            if (gst.gst_iterator_next(handle(), nextRef) == 1) {
               // if (GstObject.class.isAssignableFrom(objectType)) {
               //     return (T) GstObject.objectFor(nextRef.getValue(),
objectType, false);
               // } else {
                    return (T) NativeObject.objectFor(nextRef.getValue(),
objectType, false);
               // }
            }
            return null;
        }

Original issue reported on code.google.com by dcondev...@gmail.com on 20 Aug 2007 at 11:57

GoogleCodeExporter commented 8 years ago
Which compiler and IDE (netbeans, eclipse, etc) are you using?

That code should compile fine under JDK 6 and JDK 5.

Original comment by wmeiss...@gmail.com on 20 Aug 2007 at 2:19

GoogleCodeExporter commented 8 years ago
I use Eclipse Version: 3.2.1 on Windows with jdk 1.6.0

Original comment by dcondev...@gmail.com on 20 Aug 2007 at 2:38

Attachments:

GoogleCodeExporter commented 8 years ago
The problem is fixed with the last update in the SVN repository

Original comment by dcondev...@gmail.com on 21 Aug 2007 at 3:17

GoogleCodeExporter commented 8 years ago
You might want to check that you have eclipse set to use the JDK compiler, 
instead of
its own internal compiler.  I have done more changes to generics usage, and will
probably do a few more, but I only build with JDK5/6, so I can't be sure it 
won't
break again with eclipse.

Original comment by wmeiss...@gmail.com on 22 Aug 2007 at 1:46