[kaffe] Bug Report with partial fix

Atsushi Nemoto anemo at mba.ocn.ne.jp
Sat Nov 8 08:24:02 PST 2003


>>>>> On Sun, 09 Nov 2003 00:11:51 +0900 (JST), Atsushi Nemoto <anemo at mba.ocn.ne.jp> said:

anemo> The fix makes a character '/' treated as word charactors, so
anemo> now "/applet" is a single word, isn't it?

Sorry, my fix does not work if <param> tag exists.  Please ignore the
patch.  Here is a new patch.

--- /usr/local/src/cvs/kaffe/libraries/javalib/kaffe/applet/AppletTag.java	Tue Oct 28 01:57:02 2003
+++ kaffe/libraries/javalib/kaffe/applet/AppletTag.java	Sun Nov  9 01:16:27 2003
@@ -269,6 +269,7 @@
             if ( ttype == st.TT_WORD ) {
                 if ( st.sval.equals("applet") ) {
                     currentTag = new AppletTag( st);
+                    st.ordinaryChar('/');
                 }
                 else if ( st.sval.equals( "param") ) {
                     if (currentTag != null) {
@@ -281,6 +282,8 @@
                 if (ttype == st.TT_WORD && st.sval.equals("applet")) {
                     tags.addElement(currentTag);
                     currentTag = null;
+                    st.wordChars('/', '/');
+                    st.wordChars(':', ':');
                 }
             }
         }
---
Atsushi Nemoto




More information about the kaffe mailing list