[kaffe] [PATCH] appletviewer fix

Atsushi Nemoto anemo at mba.ocn.ne.jp
Sun Nov 23 04:33:02 PST 2003


I posted this patch two weeks ago but no response.  I will try again.

The appletviewer in current CVS (AppletTag.java revision 1.5) can not
handle APPLET tag with no PARAM tag.  This is a patch to fix this
behavior.

--- kaffe.cvs/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