[Bug 863] New: Error passing strings to applet methods in Chromium
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Sun Jan 29 22:03:12 PST 2012
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=863
Bug #: 863
Summary: Error passing strings to applet methods in Chromium
Classification: Unclassified
Product: IcedTea-Web
Version: 1.1.3
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Plugin
AssignedTo: dbhole at redhat.com
ReportedBy: edmccard at hotmail.com
CC: unassigned at icedtea.classpath.org
Short strings passed to applet methods have trailing garbage.
Using the following applet and html code:
\\ BadString.java
public class BadString extends java.applet.Applet {
public void badString(String param) {
System.out.println("length: " + param.length());
System.out.println("value: " + param);
}
}
<!-- test.html -->
<html>
<head></head>
<body>
<applet name='BadString' code='BadString.class'></applet>
<script>
var applet = document.applets["BadString"];
applet.badString("A");
applet.badString("AB");
applet.badString("ABC");
applet.badString("ABCD");
applet.badString("ABCDE");
</script>
</body>
...the reported length of the strings varies from 4 to 6 (it is always at least
one greater than the actual length) and the "extra" characters are garbage.
Strings of length 6 or greater don't seem to have the problem.
Tested in Arch Linux 64-bit, icedtea-web-1.1.4, Chromium 16.0.912.77.
It works as expected with Chromium/Oracle JRE, and with Firefox/IcedTea.
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the distro-pkg-dev
mailing list