Skip to content

Commit 5f6855f

Browse files
authored
Update to snapshot 1.8.2
(* Because we shipped release 1.8.1 to fix a number-formatting bug, switch to the snapshot of 1.8.2. * Fix a JavaDoc typo * Fix POM files so that Maven Central will accept them
1 parent 2597e94 commit 5f6855f

File tree

8 files changed

+48
-5
lines changed

8 files changed

+48
-5
lines changed

RELEASE-NOTES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Rhino 1.8.1, Rhino 1.7.15.1, Rhino 1.7.14.1
2+
## December 2, 2025
3+
4+
These releases fix a bug in the code that formats floating-point numbers into strings
5+
that could result in very bad performance in some cases.
6+
7+
We recommend that all users of Rhino upgrade to release 1.8.1 if possible,
8+
and upgrade to Java 17 or 21.
9+
10+
Users who need an older release, or who cannot yet leave Java 8, can also
11+
use 1.7.15.1 or 1.7.14.1.
12+
113
# Rhino 1.8.0
214
## January 2, 2025
315

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rootProject.name=rhino-root
22
group=org.mozilla
3-
version=1.8.1-SNAPSHOT
3+
version=1.8.2-SNAPSHOT
44
mavenReleaseRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
55
mavenSnapshotRepo=https://oss.sonatype.org/content/repositories/snapshots
66
githubPackagesRepo=https://maven.pkg.github.com/mozilla/rhino

rhino-all/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ publishing {
4040
pom.withXml {
4141
def root = asNode()
4242

43+
root.appendNode('name', 'rhino-all')
4344
root.appendNode('description', "Rhino JavaScript all-in-one JAR, not for use with modular Java projects")
4445
root.appendNode("url", "https://mozilla.github.io/rhino/")
4546

@@ -60,6 +61,11 @@ publishing {
6061
def o = root.appendNode("organization")
6162
o.appendNode("name", "The Mozilla Foundation")
6263
o.appendNode("url", "http://www.mozilla.org")
64+
65+
def d = root.appendNode("developers")
66+
def dd = d.appendNode("developer")
67+
dd.appendNode("name", "Greg Brail")
68+
dd.appendNode("email", "gbrail@users.noreply.github.com")
6369
}
6470
}
6571
}

rhino-engine/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ publishing {
1515
pom.withXml {
1616
def root = asNode()
1717

18+
root.appendNode('name', 'rhino-engine')
1819
root.appendNode('description', "Rhino ScriptEngine implementation")
1920
root.appendNode("url", "https://mozilla.github.io/rhino/")
2021

@@ -35,6 +36,11 @@ publishing {
3536
def o = root.appendNode("organization")
3637
o.appendNode("name", "The Mozilla Foundation")
3738
o.appendNode("url", "http://www.mozilla.org")
39+
40+
def d = root.appendNode("developers")
41+
def dd = d.appendNode("developer")
42+
dd.appendNode("name", "Greg Brail")
43+
dd.appendNode("email", "gbrail@users.noreply.github.com")
3844
}
3945
}
4046
}

rhino-tools/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ publishing {
1515
pom.withXml {
1616
def root = asNode()
1717

18+
root.appendNode('name', 'rhino-tools')
1819
root.appendNode('description', "Rhino tools, including shell and debugger")
1920
root.appendNode("url", "https://mozilla.github.io/rhino/")
2021

@@ -35,6 +36,11 @@ publishing {
3536
def o = root.appendNode("organization")
3637
o.appendNode("name", "The Mozilla Foundation")
3738
o.appendNode("url", "http://www.mozilla.org")
39+
40+
def d = root.appendNode("developers")
41+
def dd = d.appendNode("developer")
42+
dd.appendNode("name", "Greg Brail")
43+
dd.appendNode("email", "gbrail@users.noreply.github.com")
3844
}
3945
}
4046
}

rhino-xml/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ publishing {
1515
pom.withXml {
1616
def root = asNode()
1717

18+
root.appendNode('name', 'rhino-xml')
1819
root.appendNode('description', "Rhino XML support")
1920
root.appendNode("url", "https://mozilla.github.io/rhino/")
2021

@@ -35,6 +36,11 @@ publishing {
3536
def o = root.appendNode("organization")
3637
o.appendNode("name", "The Mozilla Foundation")
3738
o.appendNode("url", "http://www.mozilla.org")
39+
40+
def d = root.appendNode("developers")
41+
def dd = d.appendNode("developer")
42+
dd.appendNode("name", "Greg Brail")
43+
dd.appendNode("email", "gbrail@users.noreply.github.com")
3844
}
3945
}
4046
}

rhino/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ publishing {
1616
// attribute otherwise, and without it Maven Central verification
1717
// will fail.
1818
pom.withXml {
19-
def root = asNode()
19+
20+
def root = asNode()
2021

22+
root.appendNode('name', 'rhino')
2123
root.appendNode('description', "Rhino JavaScript runtime jar, excludes XML, tools, and ScriptEngine wrapper")
2224
root.appendNode("url", "https://mozilla.github.io/rhino/")
2325

@@ -38,6 +40,11 @@ publishing {
3840
def o = root.appendNode("organization")
3941
o.appendNode("name", "The Mozilla Foundation")
4042
o.appendNode("url", "http://www.mozilla.org")
43+
44+
def d = root.appendNode("developers")
45+
def dd = d.appendNode("developer")
46+
dd.appendNode("name", "Greg Brail")
47+
dd.appendNode("email", "gbrail@users.noreply.github.com")
4148
}
4249
}
4350
}

rhino/src/main/java/org/mozilla/javascript/dtoa/DecimalFormatter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ public class DecimalFormatter {
88
private static final double MAX_FIXED = 1E21;
99

1010
/**
11-
* The algorithm of Number.prototype.toExponential. If fractionDigits is < 0, then it indicates
12-
* the special case that the value was previously undefined, which calls for a different
13-
* precision for the calculation.
11+
* The algorithm of Number.prototype.toExponential. If fractionDigits is &lt; 0, then it
12+
* indicates the special case that the value was previously undefined, which calls for a
13+
* different precision for the calculation.
1414
*/
1515
public static String toExponential(double v, int fractionDigits) {
1616
assert Double.isFinite(v);

0 commit comments

Comments
 (0)