-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.3.0, 1.3.1_01
-
x86
-
windows_2000, windows_xp
Name: gm110360 Date: 11/17/2001
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01a)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
I've been using newline and tabs as logical record and field separator in a
<PARAM ...> using JRE Plugin 1.3.1.
The rationale behind this is that the HTML code is far shorter and cleaner than
the canonical approach.
Upgrading to 1.3.1_01a, however, broke this mechanism. This version simply
ignores all tabs and newlines, while the former didn't.
Sample code:
---------------------------------------------------------------
import java.awt.*;
import javax.swing.*;
public class X extends JApplet {
static String hstr="0123456789ABCDEF";
public String hex(int c) { return " "+hstr.charAt((int)(c/16))+hstr.charAt
((int)(c%16)); }
public void init() {
String test,htest;
test=getParameter("Test");
System.out.println("Test='"+test+"'");
htest="";
for(int x=0;x<test.length();x++)
htest=htest+hex(test.charAt(x));
System.out.println(htest);
getContentPane().add(new JLabel(htest));
}
}
---------------------------------------------------------------
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=100%
HEIGHT=100%>
<PARAM NAME=CODE VALUE="X"><PARAM NAME=CODEBASE VALUE = ".">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1">
<PARAM NAME="scriptable" VALUE="false">
<PARAM NAME = "Test" VALUE ="a b c
d
e f
g">
</OBJECT>
<!-- a TAB b TAB c NEWLINE d NEWLINE e TAB f NEWLINE g -->
---------------------------------------------------------------
The output for version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
Microsoft Internet Explorer (tested on both 5.50 and 6.0)
is
Test='a b c
d
e f
g'
61 09 62 09 63 0A 64 0A 65 09 66 0A 67
The output for (newer) version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01a)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
Microsoft Internet Explorer (tested on both 5.50 and 6.0)
is
Test='abcdefg'
61 62 63 64 65 66 67
Release Regression From : 1.3.1
The above release value was the last known release where this
bug was knwon to work. Since then there has been a regression.
(Review ID: 135783)
======================================================================