Bug#335227: kaffe: rmic throws an exception when no "-d" option is
given
fonso
ulfonk_mennhar at gmx.de
Sat Oct 22 18:25:03 UTC 2005
Package: kaffe
Version: 2:1.1.6-3
Severity: normal
The following example pretty much tells the whole story:
alve at ente:~/middleware/prakt$ /usr/lib/kaffe/bin/rmic -verbose -classpath . simpleStocks.StockMarketImpl
[Processing class simpleStocks.StockMarketImpl.class]
[analyze class simpleStocks.StockMarketImpl]
[implements simpleStocks.StockMarket]
[implements java.rmi.Remote]
[Generating class simpleStocks.StockMarketImpl_Stub]
[Generating class simpleStocks.StockMarketImpl_Skel]
java.lang.StringIndexOutOfBoundsException: index = 0, length=0
at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:native)
at java.lang.VMThrowable.fillInStackTrace (VMThrowable.java:79)
at java.lang.Throwable.fillInStackTrace (Throwable.java:498)
at java.lang.Throwable.<init> (Throwable.java:159)
at java.lang.Exception.<init> (Exception.java:78)
at java.lang.RuntimeException.<init> (RuntimeException.java:76)
at java.lang.IndexOutOfBoundsException.<init> (IndexOutOfBoundsException.java:73)
at java.lang.StringIndexOutOfBoundsException.<init> (StringIndexOutOfBoundsException.java:73)
at java.lang.String.charAt (String.java:225)
at java.io.File.getParent (File.java:539)
at java.io.File.getParentFile (File.java:597)
at gnu.classpath.tools.rmi.rmic.RMIC.generateSkel (RMIC.java:1223)
at gnu.classpath.tools.rmi.rmic.RMIC.processClass (RMIC.java:174)
at gnu.classpath.tools.rmi.rmic.RMIC.run (RMIC.java:136)
at gnu.classpath.tools.rmi.rmic.RMIC.rmic (RMIC.java:112)
at gnu.classpath.tools.rmi.rmic.RMIC.main (RMIC.java:100)
alve at ente:~/middleware/prakt$ /usr/lib/kaffe/bin/rmic -verbose -d simpleStocks/ -classpath . simpleStocks.StockMarketImpl
[Processing class simpleStocks.StockMarketImpl.class]
[analyze class simpleStocks.StockMarketImpl]
[implements simpleStocks.StockMarket]
[implements java.rmi.Remote]
[Generating class simpleStocks.StockMarketImpl_Stub]
[Generating class simpleStocks.StockMarketImpl_Skel]
alve at ente:~/middleware/prakt$
There must be something around RMIC.java:1223 that evaluates the "-d"
option even if it's not there. The result is a
StringIndexOutOfBoundsException. Sun's rmic doesn't require the "-d"
option so this should be regarded as a bug.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-powerpc
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)
Versions of packages kaffe depends on:
ii kaffe-pthreads 2:1.1.6-3 A POSIX threads enabled version of
kaffe recommends no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list