[ nice-Bugs-1090888 ] Inheriting native constructor with type parameters
"SourceForge.net" <[email protected]> Sat, 25 Dec 2004 19:12:37 -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 (Comment added) 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: Open
>Resolution: Accepted
>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 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/