[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcjwebplugin-devel] Some small patches
From: |
Mark Wielaard |
Subject: |
[Gcjwebplugin-devel] Some small patches |
Date: |
Thu, 05 Aug 2004 21:46:59 +0200 |
Hi,
While running various applets with gcjwebplugin and gij I encountered
two small issues. When the code points to a somep/somec.class the .class
is stripped, but the "/" isn't converted to a '.'. And
Applet.getParameter(String) should work case insensitive. Attached patch
fixes both issues for me.
Cheers,
Mark
? appletthingy.html
? patch
? gnu/gcjwebplugin/locale/.libs
? gnu/gcjwebplugin/locale/libgnugcjwebpluginlocale.la
? gnu/gcjwebplugin/locale/localeproperties.jar
Index: gnu/gcjwebplugin/AppletTag.java
===================================================================
RCS file:
/cvsroot/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/AppletTag.java,v
retrieving revision 1.17
diff -u -r1.17 AppletTag.java
--- gnu/gcjwebplugin/AppletTag.java 25 Jul 2004 16:52:37 -0000 1.17
+++ gnu/gcjwebplugin/AppletTag.java 5 Aug 2004 17:07:53 -0000
@@ -92,7 +92,7 @@
{
StringTokenizer paramTokenizer =
new StringTokenizer((String) pairs.next(), ",");
- this.parameters.put(paramTokenizer.nextToken().trim(),
+ this.parameters.put(paramTokenizer.nextToken().trim().toLowerCase(),
paramTokenizer.nextToken().trim());
}
this.parameters.put("width", Integer.toString(dimensions.width));
Index: gnu/gcjwebplugin/AppletViewer.java
===================================================================
RCS file:
/cvsroot/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/AppletViewer.java,v
retrieving revision 1.37
diff -u -r1.37 AppletViewer.java
--- gnu/gcjwebplugin/AppletViewer.java 3 Jul 2004 11:19:12 -0000 1.37
+++ gnu/gcjwebplugin/AppletViewer.java 5 Aug 2004 17:07:53 -0000
@@ -83,7 +83,7 @@
String code = tag.code;
if (code.endsWith(".class"))
- code = code.substring(0, code.length() - 6);
+ code = code.substring(0, code.length() - 6).replace('/', '.');
Class c = loader.loadClass(code);
applet = (Applet) c.newInstance();
Index: gnu/gcjwebplugin/CommonAppletStub.java
===================================================================
RCS file:
/cvsroot/gcjwebplugin/gcjwebplugin/src/gnu/gcjwebplugin/CommonAppletStub.java,v
retrieving revision 1.5
diff -u -r1.5 CommonAppletStub.java
--- gnu/gcjwebplugin/CommonAppletStub.java 2 Jul 2004 12:44:08 -0000
1.5
+++ gnu/gcjwebplugin/CommonAppletStub.java 5 Aug 2004 17:07:53 -0000
@@ -95,7 +95,7 @@
*/
public String getParameter(String name)
{
- return (String) tag.parameters.get(name);
+ return (String) tag.parameters.get(name.toLowerCase());
}
/**
signature.asc
Description: This is a digitally signed message part
- [Gcjwebplugin-devel] Some small patches,
Mark Wielaard <=