[ nice-Bugs-1090888 ] Inheriting native constructor with type parameters
"SourceForge.net" <[email protected]> Sat, 25 Dec 2004 22:23:29 -0800
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1090888, was opened at 2004-12-24 17:43
Message generated for change (Settings changed) made by bonniot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1090888&group_id=12788
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 9
Submitted By: mike.beckerle (mbeckerle)
Assigned to: Daniel Bonniot (bonniot)
Summary: Inheriting native constructor with type parameters
Initial Comment:
This crashes the compiler 0.9.9:
It worked until I added the "toString() call in the last line.
package dfdl;
class Env extends HashMap<String, String> {}
Env makeEnv(List<(String, String)> initList) {
return new Env(initList.listToMap());
}
void _test_makeEnv() {
var env = makeEnv([("foo", "bar"), ("quux", "bar")]);
println(env);
assert(equals(env.toString(), "{foo=bar, quux=bar}"));
}
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-12-26 07:23
Message:
Logged In: YES
user_id=88952
This bug has been fixed. The next release of the compiler will
include this correction. In the mean time, I encourage you try
the development version. It contains a version of the compiler
that fixes the bug. Please try it and reopen the bug-report if
you find any problem with it.
To know how to get an install the development version of the
compiler that fixes this bug, please read
http://nice.sf.net/cgi-bin/twiki/view/Dev/DevelopmentVersion
Note that the bug has first been fixed in the CVS version, and it
might take one or two hours until the development version
includes the fix.
Thanks again for your help by submiting this bug report.
Daniel Bonniot
----------------------------------------------------------------------
Comment By: Daniel Bonniot (bonniot)
Date: 2004-12-26 04:12
Message:
Logged In: YES
user_id=88952
OK, I understand what happens. The case where a parent
class, defined in Java, had a retyped constructor with type
parameters was not handled properly. I'm working on fixing
this...
----------------------------------------------------------------------
Comment By: mike.beckerle (mbeckerle)
Date: 2004-12-24 18:01
Message:
Logged In: YES
user_id=1182016
So I thought. Now regardless of what I do with the toString it
always crashes the compiler.
I'm pretty much blocked by this bug. I don't want to go
replace Env in my source code with Map<String, String>, but
that's the only workaround.
So, in the scheme of priorities, this one is very important to
me.
Thanks -mike beckerle
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1090888&group_id=12788
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/