#6434 closed defect (fixed)

Missing stuff in SWIG Java bindings for proper use of GNM

Reported by: Even Rouault Owned by: Bishop
Priority: normal Milestone:
Component: JavaBindings Version: unspecified
Severity: normal Keywords: gnm
Cc: bishop

Description

Seen in #6433

[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_GIntBig.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_GIntBig(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                            ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_OGRErr.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_OGRErr(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                           ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_OGRFeatureShadow.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_OGRFeatureShadow(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                                     ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_OGRLayerShadow.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_OGRLayerShadow(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                                   ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_OGRwkbGeometryType.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_OGRwkbGeometryType(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                                       ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_OSRSpatialReferenceShadow.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_OSRSpatialReferenceShadow(long cPtr, @SuppressWarnings("unused") boolean futureUse) {
    [javac]                                                              ^
    [javac]   (use -source 5 or higher to enable annotations)
    [javac] /build/gdal-2.1.0~beta1+dfsg/swig/java/org/gdal/gnm/SWIGTYPE_p_p_char.java:14: error: annotations are not supported in -source 1.4
    [javac]   protected SWIGTYPE_p_p_char(long cPtr, @SuppressWarnings("unused") boolean futureUse) {

There is a lack of something so that types are properly bound in GNM Java bindings.

Change History (6)

comment:1 Changed 16 months ago by Even Rouault

trunk r33867 "Java bindings: disable generation of bindings for GNM as they are not ready yet (#6434)"

comment:2 Changed 16 months ago by Even Rouault

Cc: bishop added
Component: defaultJavaBindings
Keywords: gnm added
Owner: changed from warmerdam to Even Rouault

comment:3 Changed 16 months ago by Bishop

Owner: changed from Even Rouault to Bishop
Status: newassigned

comment:4 Changed 13 months ago by bishop

Resolution: fixed
Status: assignedclosed

In 34380:

Fix SWIG Java bindings for GNM
Fix #6434

comment:5 Changed 13 months ago by Even Rouault

Resolution: fixed
Status: closedreopened

Dmitry, I still think there are issues with the mapping of types, since I'm still seeing :

ll org/gdal/gnm/SWIGTYPE*
-rw-r--r-- 1 even even 709 2016-06-20 13:04 org/gdal/gnm/SWIGTYPE_p_OGRErr.java
-rw-r--r-- 1 even even 749 2016-06-20 13:04 org/gdal/gnm/SWIGTYPE_p_OGRFeatureShadow.java
-rw-r--r-- 1 even even 741 2016-06-20 13:04 org/gdal/gnm/SWIGTYPE_p_OGRLayerShadow.java
-rw-r--r-- 1 even even 757 2016-06-20 13:04 org/gdal/gnm/SWIGTYPE_p_OGRwkbGeometryType.java
-rw-r--r-- 1 even even 785 2016-06-20 13:04 org/gdal/gnm/SWIGTYPE_p_OSRSpatialReferenceShadow.java

comment:6 Changed 13 months ago by bishop

Resolution: fixed
Status: reopenedclosed

In 34381:

Fix issue with types mapping
Fix #6434

Note: See TracTickets for help on using tickets.