diff options
author | Brett Kail <bjkail@gmail.com> | 2016-12-14 01:48:49 +0100 |
---|---|---|
committer | Evgeny Mandrikov <Godin@users.noreply.github.com> | 2016-12-14 02:22:14 +0100 |
commit | 055e8e4c209673f96581b723fcc6295852bf997e (patch) | |
tree | b58c9875f4af8e6a3513810af10c03fc332b12a3 /org.jacoco.doc/docroot | |
parent | eeb3aa8826450205ba413098605c37fe0b9e34d3 (diff) | |
download | jacoco-055e8e4c209673f96581b723fcc6295852bf997e.tar.gz |
Make FORMAT_VERSION non-constant
If a constant expression is assigned to a static final variable, javac
will inline the constant value in the caller, which means constants
should only be used for values that will never change. Otherwise,
calling code must be recompiled when upgrading to a new version of the
library even if the caller would otherwise not require any changes.
Diffstat (limited to 'org.jacoco.doc/docroot')
-rw-r--r-- | org.jacoco.doc/docroot/doc/changes.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/org.jacoco.doc/docroot/doc/changes.html b/org.jacoco.doc/docroot/doc/changes.html index 181444c9..f5fc0137 100644 --- a/org.jacoco.doc/docroot/doc/changes.html +++ b/org.jacoco.doc/docroot/doc/changes.html @@ -20,6 +20,12 @@ <h2>Snapshot Build @qualified.bundle.version@ (@build.date@)</h2> +<h3>Fixed Bugs</h3> +<ul> + <li><code>ExecutionDataWriter.FORMAT_VERSION</code> is not a compile-time constant + (GitHub <a href="https://github.com/jacoco/jacoco/issues/474">#474</a>).</li> +</ul> + <h3>API Changes</h3> <ul> <li><code>JaCoCo.ASM_API_VERSION</code> removed |