This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Require not accepting class names starting with <int>-
- From: Per Bothner <per at bothner dot com>
- To: Jocelyn Paine <popx at ifs dot org dot uk>
- Cc: kawa at sources dot redhat dot com
- Date: Sun, 14 Jul 2002 22:18:12 -0700
- Subject: Re: Require not accepting class names starting with <int>-
- References: <Pine.LNX.4.21.0207141807030.23669-100000@pop3.ifs.org.uk>
Jocelyn Paine wrote:
The class file exists:
[d:\kb7\mm3\general]dir *.class /o:d
....
14/07/02 18:03 710 2-Vectors.class
"2-vectors" is not a valid Java class name, and therefore it
isn't a valid class file name. This is a Kawa bug - there is
probably some place where we ought to call the method
Compilation.mangleNameIfNeeded somewhere, but don't. On the
other hand, in most cases, you probably don't want to do this.
But Kawa dislikes the type specifier when I require it:
[d:\kb7\mm3\general]java kawa.repl
#|kawa:1|# (require <kb7.mm3.general.2-Vectors>)
<stdin>:1:2: invalid specifier for 'require'
Should I be able to use this class name in 'require'?
Probably not. We could call Compilation.mangleNameIfNeeded,
but that may just mask errors.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/