aboutsummaryrefslogtreecommitdiffstats
path: root/lib/jinterface/test/nc_SUITE_data
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2011-11-13 14:58:06 +0100
committerHenrik Nord <[email protected]>2011-11-24 10:22:57 +0100
commite01d6f39b940d917ae445d8428b154de87888000 (patch)
tree1dc7feb83b8ec1c8df0600f4565b6018d6aaccb9 /lib/jinterface/test/nc_SUITE_data
parenta30445c2a40ebc0e449c7b7605fdc202c48e00d8 (diff)
downloadotp-e01d6f39b940d917ae445d8428b154de87888000.tar.gz
otp-e01d6f39b940d917ae445d8428b154de87888000.tar.bz2
otp-e01d6f39b940d917ae445d8428b154de87888000.zip
add test for Java string bug
Diffstat (limited to 'lib/jinterface/test/nc_SUITE_data')
-rw-r--r--lib/jinterface/test/nc_SUITE_data/echo_server.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/jinterface/test/nc_SUITE_data/echo_server.java b/lib/jinterface/test/nc_SUITE_data/echo_server.java
index 0550e4beb1..5ecb5b72a7 100644
--- a/lib/jinterface/test/nc_SUITE_data/echo_server.java
+++ b/lib/jinterface/test/nc_SUITE_data/echo_server.java
@@ -202,6 +202,12 @@ public class echo_server {
final OtpErlangAtom o = new OtpErlangAtom(s.stringValue()
.substring(3));
return o;
+ } else if (atomValue.equals("codepointBug")
+ && i instanceof OtpErlangString) {
+ final OtpErlangString s = (OtpErlangString) i;
+ final String ss = s.stringValue().substring(3, 6);
+ final int[] cps = OtpErlangString.stringToCodePoints(ss);
+ return s;
} else if (atomValue.equals("utf8")) {
if (i instanceof OtpErlangString) {
final OtpErlangString s = (OtpErlangString) i;