Menu

#24 Nesting event types inside class doesn't work as expected

open
nobody
6
2012-02-27
2012-02-27
Robert Dyer
No

If you nest an event, such as:

public class bug {
public void event E {}
}

then you get several issues, where trying to reference the event gives:

error: package E does not exist

Moving the class bug into a package, and then doing 'import pkg.bug.*;' and only referencing the event as 'E' works fine.

If you try to qualify it as 'pkg.bug.E' you still get:

error: package E does not exist

Discussion