This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Parameterizing on incomplete types


On 12/10/2011 11:02 AM, Jamison Hope wrote:
But, I've stumbled upon what appears to be a Kawa bug that's preventing
me from evaluating an expression containing two class literals when both
are defined in the REPL (or in the same test script).

I checked in a fix for this.


This was a subtle bug in the way we general class names for
interactive "module fragments" - each line is supposed to have
a unique name like atInteractiveLevel$N for differing values of N.
However, this name is set after parsing.

When we see the define-simple-class it needs the module class name
at that time, so we force a name for module class - but it's not
the correct one, and it's not unique.  Which means backward references
fail.

The fix is to set the module's class name before parsing the line.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]