-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Coty,
On 4/25/18 2:51 PM, Coty Sutherland wrote: > On Wed, Apr 25, 2018 at 2:14 PM, Mark Thomas <ma...@apache.org> > wrote: >> On 25/04/18 18:07, Coty Sutherland wrote: >>> Hi all, >>> >>> There was a problem discovered on Ubuntu where they're building >>> Tomcat 9 with Java 9, but users are using it with Java 8. That >>> is causing issues because of changes made in Java 9. One of the >>> Ubuntu folks is poking around with a patch and has some details >>> about the issue here https://pastebin.com/EnVh7K8v. We will >>> probably open a bugzilla to see if anyone is open to addressing >>> them in tomcat, >> >> I'm not in favour of that patch. > > Given the amount of changes I'm not either, I mentioned it because > I told the person working on it I would just in case someone was > interested. I think the responsibility of maintaining those sorts > of problems should fall on that on the distro's maintainer. Fedora > is fine for me (I build with Java 8), but apparently Ubuntu is > building with Java 10 and will switch to 11 at some point, which is > causing the problem. > >> >>> but while thinking about the problem I noted that our supported >>> java versions table on >>> http://tomcat.apache.org/whichversion.html doesn't explicitly >>> say that by 'supported' we mean the tomcat binary we provide >>> will run on that java version. I don't think that we claim that >>> you can build with any version and run on any version anywhere, >>> right? >> >> Correct. > > Thanks for confirming. > >> BUILDING.txt states that Tomcat 9 should be built with Java 8. >> >>> Is anyone opposed to adding a statement to that effect on the >>> page? >> >> I think something along those lines would be fine. Something to >> the effect of if you build from source with a higher version of >> Java than the minimum then it might not work on Java versions >> below the version you build with. But worded more clearly. > > OK, I'll look at adding some verbiage around that. Dumb question, I haven't tried Java 9 yet: can't you just set "-target 1.8" on the compiler and still build with Java 9? - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlrh8AwACgkQHPApP6U8 pFjMaQ/8Dc/3cQmckkgYeCmrlliNQV59GvHI4tmueMTM+Rd/OKYQZpiD48GTD09U zMMbTsc9oqmzS+FcDeYMyeZcx7W97oH+uiaTAiyM6LKbbEiz0KHITLsnMw1ujAMw 9q0V1pz4uaS3vBKRZtJRg5AEGYCzAT+lLzmZWhY26WlTppeISTmd/jCqK37v8OAq 98nCd6vVno8lJIRoSPbNLorPIi+iS8OoVQl5uQrdylb0ueXZiv0eI7BL5DgZoKQC 9xhYCcGPGj/CdHAym6koBpCMLn4l3hc8m/rvdY238FDcDLrzSdHyNSkslXqzG8iD L+iJt+Go2wn7Pe+n3/+LpN4i5yIv5JMSqW3W0iUKGqz6yJblRNxpSiD0iS0h3zOc zBnzYtYvOV+dMW339OZHxwZZd+TlFN9XeXq81a4orfEbH4AwZEJqKzRGiRCMW3jP X4O8iGF68TgQHDbOkMTkzBjLsgof7bmk5r2uYcndGlhoOLDdL0KszXxNVTQPKFwc ImMs3UVBmqdb4JI+7tzK/j0LyQmjmjPmWq0z/xzpJTTxzDfRfsr1mhcWygL7bv+d 7jGwye77ZZQBjAOjU53z9By+JEfDZtizAz5/7FjlSdNWAygXNZIZiGs+XbVyUmTL N4l/6vTHOHCBLV8xHnRWPtwyEw0VmBFzExpn+GnwLfkKmmRHEMY= =lUtG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org