[Nice-commit] Nice/testsuite/compiler/packages inner-classes.testsuite,NONE,1.1
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-04-18 18:23:21
|
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(); |