Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling import conflicts with multiple equally named classes/states in different packages #39

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

If two imported packages contain classes/states with the same name, we don't 
report an error immediately which can lead to weird runtime errors.


What is the expected output? What do you see instead?

The user should get some error. Currently, if the programmer references one of 
the problematic classes/states and the runtime chooses the other one, there'll 
be a lot of "Member 'foo' not found"-like errors. Java handles it like this:
"In rare cases it can happen that you need to reference two classes having the 
same name in different packages. In those cases, you can not use the import 
keyword for both classes. One of them needs to be referenced by typing in the 
whole package name." [Source: 
http://en.wikibooks.org/wiki/Java_Programming/Packages]
We should probably do the same.

Original issue reported on code.google.com by [email protected] on 9 Jun 2010 at 6:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant