You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2020/02/04 13:46:00 UTC
[jira] [Created] (LOG4J2-2771) Remove need for multiple JDKs during
build
Volkan Yazici created LOG4J2-2771:
-------------------------------------
Summary: Remove need for multiple JDKs during build
Key: LOG4J2-2771
URL: https://issues.apache.org/jira/browse/LOG4J2-2771
Project: Log4j 2
Issue Type: Improvement
Reporter: Volkan Yazici
As of now, the build requires two JDKs: 7/8 and 11. As stated by [~mattsicker] in [a mailing list discussion|https://lists.apache.org/thread.html/r0ff7872f743b30a89cd4119b44ed028dc661be8875e1c29546559d42%40%3Cdev.logging.apache.org%3E], this can be simplified by
# only relying on JDK 11,
# fixing compile errors, and
# ensuring bytecode compatibility via [maven-animal-sniffer|https://www.mojohaus.org/animal-sniffer/index.html].
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
Re: [jira] [Created] (LOG4J2-2771) Remove need for multiple JDKs
during build
Posted by Ralph Goers <ra...@dslextreme.com>.
I am pretty sure I have run into other issues as well. I know all the stuff that is in the -java9 modules has counterparts that are based on Java 8 but I believe most of those use reflection to get at the stuff the compiler would fail at. However, you can’t just set the -source and -target options. -release is supposed to verify that only the appropriate JDK methods are used but I have never tried it.
Ralph
> On Feb 4, 2020, at 9:59 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> The problem is that this will mess up Java 8 clients when code compiled
> against various Buffer classes runs due to methods added or tweaked in Java
> 9's Buffer classes.
>
> Gary
>
> Gary
>
> On Tue, Feb 4, 2020, 08:46 Volkan Yazici (Jira) <ji...@apache.org> wrote:
>
>> Volkan Yazici created LOG4J2-2771:
>> -------------------------------------
>>
>> Summary: Remove need for multiple JDKs during build
>> Key: LOG4J2-2771
>> URL: https://issues.apache.org/jira/browse/LOG4J2-2771
>> Project: Log4j 2
>> Issue Type: Improvement
>> Reporter: Volkan Yazici
>>
>>
>> As of now, the build requires two JDKs: 7/8 and 11. As stated by
>> [~mattsicker] in [a mailing list discussion|
>> https://lists.apache.org/thread.html/r0ff7872f743b30a89cd4119b44ed028dc661be8875e1c29546559d42%40%3Cdev.logging.apache.org%3E],
>> this can be simplified by
>> # only relying on JDK 11,
>> # fixing compile errors, and
>> # ensuring bytecode compatibility via [maven-animal-sniffer|
>> https://www.mojohaus.org/animal-sniffer/index.html].
>>
>>
>>
>> --
>> This message was sent by Atlassian Jira
>> (v8.3.4#803005)
>>
Re: [jira] [Created] (LOG4J2-2771) Remove need for multiple JDKs
during build
Posted by Gary Gregory <ga...@gmail.com>.
The problem is that this will mess up Java 8 clients when code compiled
against various Buffer classes runs due to methods added or tweaked in Java
9's Buffer classes.
Gary
Gary
On Tue, Feb 4, 2020, 08:46 Volkan Yazici (Jira) <ji...@apache.org> wrote:
> Volkan Yazici created LOG4J2-2771:
> -------------------------------------
>
> Summary: Remove need for multiple JDKs during build
> Key: LOG4J2-2771
> URL: https://issues.apache.org/jira/browse/LOG4J2-2771
> Project: Log4j 2
> Issue Type: Improvement
> Reporter: Volkan Yazici
>
>
> As of now, the build requires two JDKs: 7/8 and 11. As stated by
> [~mattsicker] in [a mailing list discussion|
> https://lists.apache.org/thread.html/r0ff7872f743b30a89cd4119b44ed028dc661be8875e1c29546559d42%40%3Cdev.logging.apache.org%3E],
> this can be simplified by
> # only relying on JDK 11,
> # fixing compile errors, and
> # ensuring bytecode compatibility via [maven-animal-sniffer|
> https://www.mojohaus.org/animal-sniffer/index.html].
>
>
>
> --
> This message was sent by Atlassian Jira
> (v8.3.4#803005)
>