[ nice-Bugs-1509635 ] Nicec should ignore bridge methods
"SourceForge.net" <[email protected]> Tue, 20 Jun 2006 16:32:31 -0700
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1509635, was opened at 2006-06-20 23:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1509635&group_id=12788
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: B S (ben77)
Assigned to: Nobody/Anonymous (nobody)
Summary: Nicec should ignore bridge methods
Initial Comment:
Currently nicec looks at bridge methods when evaluating
possible methods for a call. This leads to confusing
error messages under 1.5 like the ones about
StringBuffer that prevent nice from compiling under
1.5. For example:
package testing;
void main(String[] args)
{
StringBuffer buf = new StringBuffer();
buf.append("a").append('A');
}
Fails to compile with this error:
nice.lang: parsing
testing: parsing
testing: typechecking
~/test/nice/testing/main.nice:6:19:
Ambiguity for symbol append. Possibilities are :
java.lang.AbstractStringBuilder
append(java.lang.AbstractStringBuilder, ?Object)
java.lang.Appendable append(java.lang.Appendable,
nice.lang.char)
compilation failed with 1 error
Neither of these methods should be visible, as they are
overridden by StringBuffer.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1509635&group_id=12788