[PATCH] RMI patches
Carlos Valiente
kaffe@rufus.w3.org
Sat, 14 Jul 2001 19:53:06 +0200
--------------Boundary-00=_IO5HTI4YVTLYM4O0Q3SY
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Here's a little patch for RMI under kaffe:
- kjc cannot compile the generated XXXX_Skel.java file. That file contains a
fragment which looks like this:
XXXX $param_0;
try {
$param_0 = ...
}
catch {
...
}
int result = server.YYYYYY($param_0)
kjc complains about "Local variable "$param_0" may have not been initialized
before use [JLS 14.4]". This patch makes RMIC generate 'XXXX $param_0 =
null' instead, and the problem is solved.
- The 'rmic' script now supports the '-J' switch. Options prefixed with 'J'
will be passed to the virtual machine which executes kaffe.rmi.rmic.RMIC,
just like Sun's rmic. The main benefit from this patch is being able to use
'jikes' as compiler for the generated stubs and skeletons; something like
this:
rmic -J-Dkaffe.compiler=jikes YourObjectImpl
, which greatly accelerates development cycles!
The new 'rmic' script works well under 'bash' and makes use of GNU expr. I
haven't tested it under any other shell.
--------------Boundary-00=_IO5HTI4YVTLYM4O0Q3SY
Content-Type: text/plain;
charset="iso-8859-1";
name="kaffe-rmi-1.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="kaffe-rmi-1.diff"
SW5kZXg6IGthZmZlL3NjcmlwdHMvcm1pYy5pbgo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2th
ZmZlL2thZmZlL2thZmZlL3NjcmlwdHMvcm1pYy5pbix2CnJldHJpZXZpbmcgcmV2aXNpb24gMS40
CmRpZmYgLXUgLXIxLjQgcm1pYy5pbgotLS0ga2FmZmUvc2NyaXB0cy9ybWljLmluCTE5OTkvMTAv
MDkgMTk6NTY6MzgJMS40CisrKyBrYWZmZS9zY3JpcHRzL3JtaWMuaW4JMjAwMS8wNy8xNCAxNzo0
Mzo0NApAQCAtMSw1ICsxLDE2IEBACiAj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