aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source
diff options
context:
space:
mode:
authorEduardo Julian2019-05-17 01:30:25 -0400
committerEduardo Julian2019-05-17 01:30:25 -0400
commit8e597897978e9ad1045a89bedce4c58525d54aeb (patch)
tree75bdc8653c192d62c92f17bea1ff22408c39e6ef /stdlib/source
parentd770066b9e2046ea172305dc08f271e1159f7b64 (diff)
Fixed an accidentally introduced bug (due to OLD compiler JVM interop issues).
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/data/text/encoding.lux6
1 files changed, 5 insertions, 1 deletions
diff --git a/stdlib/source/lux/data/text/encoding.lux b/stdlib/source/lux/data/text/encoding.lux
index 1ce536436..e1066bbcd 100644
--- a/stdlib/source/lux/data/text/encoding.lux
+++ b/stdlib/source/lux/data/text/encoding.lux
@@ -184,7 +184,11 @@
(def: #export (to-utf8 value)
(-> Text Binary)
(`` (for {(~~ (static @.old))
- (java/lang/String::getBytes (..name ..utf-8) value)
+ (java/lang/String::getBytes (..name ..utf-8)
+ ## The coercion below may seem
+ ## gratuitous, but removing it
+ ## causes a grave compilation problem.
+ (:coerce java/lang/String value))
(~~ (static @.jvm))
(java/lang/String::getBytes (..name ..utf-8) value)})))