Nice/testsuite/compiler/packages inner-classes.testsuite,NONE,1.1
Daniel Bonniot <[email protected]> Mon, 18 Apr 2005 18:23:11 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/packages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32508/testsuite/compiler/packages
Added Files:
inner-classes.testsuite
Log Message:
Imported classes with a $ in their name are mishandled and end up being
duplicated in the typechecker.
--- NEW FILE: inner-classes.testsuite ---
/// PASS bug
/// package a
/// TOPLEVEL
// Original problem with a Comparator inner class
// that can't be renamed because it was registered in a database.
// That triggers a problem with special handling of '$' when traversing
// bytecode, after wich the class is introduced into mlsub.typing twice:
// as "a.Foo$Inner" and as "a.Foo.Inner".
public class Foo {
void nop( Class cl ){}
void tryMe(){ this.nop( Foo$Inner.class ); }
}
public interface Itf {
public void foo();
}
public class Foo$Inner implements Itf {
public foo(){}
}
/// package b import a
new Foo().tryMe();
-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click