<div dir="ltr">Another area for improvements would seem to be returning List<String> rather than Vector for things that only return a list of strings. Yes?<div><br></div><div>e.g. The @SuppressWarnings("unchecked") is a bummer:</div><div><br></div><div><div> @Test</div><div> public void fileSystemsPrefixes() throws Exception {</div><div> @SuppressWarnings("unchecked")</div><div> // Convert from Vector.</div><div> List<String> prefixes = gdal.GetFileSystemsPrefixes();</div></div><div><div> assertThat(prefixes)</div><div> .containsAllOf(</div><div> "/vsicrypt/",</div><div> "/vsigzip/",</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 10:32 AM, Kurt Schwehr <span dir="ltr"><<a href="mailto:schwehr@gmail.com" target="_blank">schwehr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div class="m_-5855175096759456715gmail_signature"></div>
<div><br></div><div>What are peoples thoughts on the SWIG/JNI interface to GDAL? In using it a little bit, I have some questions for the community.</div><div><br></div><div>1. Many functions drop type safety and go with raw int. e.g. gdalconst... Would people be open to using Enums?</div><div><br></div><div>2. There are many useful functions that are not SWIG wrapped for Java. e.g. I don't see a way to get bytes to or from /vsimem (or others) directly (without using a raster or vector driver). Are there thoughts on adding those?</div><div><br></div><div>3. There is no java in autotest. Are folks up for the addition of some testing? I've been working on JUnit 4 tests that I can contribute (and switch to the GDAL license). I will start putting what I have in autotest2 soon so at least folks can see what I have</div><div><br></div><div>4. What is the minimum version of Java that we must support? Can we safely add to the java side using features from newer versions? e.g. try with resources in <a href="https://gist.github.com/schwehr/481dfbfad98815c6d45c3d22f12c41d0" target="_blank">https://gist.github.com/<wbr>schwehr/<wbr>481dfbfad98815c6d45c3d22f12c41<wbr>d0</a></div><div><br></div><div>Thanks,</div><div>-kurt</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>
</div>