[
https://issues.apache.org/jira/browse/AMQ-9680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Pavlovich updated AMQ-9680:
--------------------------------
Description:
-release is supposedly more reliable than -target when mixing JDK version from
-target version
ref: https://openjdk.org/jeps/247
Motivation
javac provides two command line options, -source and -target, which can be used
to select the version of the Java language accepted by the compiler and the
version of the class files it produces, respectively. By default, however,
javac compiles against the most-recent version of the platform APIs. The
compiled program can therefore accidentally use APIs only available in the
current version of the platform. Such programs cannot run on older versions of
the platform, regardless of the values passed to the -source and -target
options. This is a long-term usability pain point, since users expect that by
using these options they'll get class files that can run on the the platform
version specified by -target.
was:
-release is supposedly more reliable than -target when mixing JDK version from
-target version
ref: https://openjdk.org/jeps/247
> Review usage of -release over -target
> -------------------------------------
>
> Key: AMQ-9680
> URL: https://issues.apache.org/jira/browse/AMQ-9680
> Project: ActiveMQ Classic
> Issue Type: Task
> Reporter: Matt Pavlovich
> Priority: Minor
>
> -release is supposedly more reliable than -target when mixing JDK version
> from -target version
> ref: https://openjdk.org/jeps/247
> Motivation
> javac provides two command line options, -source and -target, which can be
> used to select the version of the Java language accepted by the compiler and
> the version of the class files it produces, respectively. By default,
> however, javac compiles against the most-recent version of the platform APIs.
> The compiled program can therefore accidentally use APIs only available in
> the current version of the platform. Such programs cannot run on older
> versions of the platform, regardless of the values passed to the -source and
> -target options. This is a long-term usability pain point, since users expect
> that by using these options they'll get class files that can run on the the
> platform version specified by -target.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact