On Fri, Oct 19, 2018 at 12:44 PM <br...@frogmouth.net> wrote:

> Built on an Ubuntu 18.04 VM, using distro packages AFAICT:
>
>
>
> Apache Maven 3.5.2
>
> Maven home: /usr/share/maven
>
> Java version: 10.0.2, vendor: Oracle Corporation
>
> Java home: /usr/lib/jvm/java-11-openjdk-amd64
>
> Default locale: en_AU, platform encoding: UTF-8
>
> OS name: "linux", version: "4.15.0-36-generic", arch: "amd64", family:
> "unix"
>
>
>
> I think that JDK is really a pre-11 release though, so will make sure I
> use a better source when I do the main laptop.
>
>
>
> WARNING: An illegal reflective access operation has occurred
>
> WARNING: Illegal reflective access by org.opengis.util.CodeListTest
> (file:/home/bradh/geotools-jdk11/modules/library/opengis/target/test-classes/)
> to field java.util.ArrayList.elementData
>
> WARNING: Please consider reporting this to the maintainers of
> org.opengis.util.CodeListTest
>
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
>
> WARNING: All illegal access operations will be denied in a future release
>

Warnings we tolerate for phase one of the spring, and we'll try to minimize
(but not necessarily eliminate) in phase two,
for everything else we'll tell people which command line options to add if
they are bothered by them.


>  I tried switching up the target and source versions to 10 (instead of
> 1.8), along with upgrading the maven-compiler-plugin.
>
>
>
> diff --git a/pom.xml b/pom.xml
>
> index b30e4c25b0..2fa501e4e5 100644
>
> --- a/pom.xml
>
> +++ b/pom.xml
>
> @@ -1412,7 +1412,7 @@
>
>          <plugin>
>
>            <groupId>org.apache.maven.plugins</groupId>
>
>            <artifactId>maven-plugin-plugin</artifactId>
>
> -          <version>3.4</version>
>
> +          <version>3.5.2.</version>
>
>          </plugin>
>
>          <plugin>
>
>            <groupId>com.coveo</groupId>
>
> @@ -1469,10 +1469,10 @@
>
>        <plugin>
>
>          <groupId>org.apache.maven.plugins</groupId>
>
>          <artifactId>maven-compiler-plugin</artifactId>
>
> -        <version>3.1</version>
>
> +        <version>3.8.0</version>
>
>          <configuration>
>
> -          <source>1.8</source>  <!-- The -source argument for the Java
> compiler. -->
>
> -          <target>1.8</target>  <!-- The -target argument for the Java
> compiler. -->
>
> +          <source>10</source>  <!-- The -source argument for the Java
> compiler. -->
>
> +          <target>10</target>  <!-- The -target argument for the Java
> compiler. -->
>

Not sure if you did it just for tests, but just to be sure, the objective
of the sprint is to be able to build and run on a JDK11,
but JDK 8 remains the base target for the foreseeable future. It's a "also
JDK 11" sprint :-)

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information. == Ing. Andrea Aime @geowolf Technical Lead
GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39
0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to