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

Interop: deal with namespace clashes #338

Open
FroMage opened this issue Jan 25, 2012 · 8 comments
Open

Interop: deal with namespace clashes #338

FroMage opened this issue Jan 25, 2012 · 8 comments

Comments

@FroMage
Copy link
Member

FroMage commented Jan 25, 2012

In Java you can write a class, method, property and field with the same name because they are in a different namespace. This isn't true in Ceylon, so we need to find a strategy around it:

class Foo {
 class a {}
 int a; 
 int getA(){ return 0; }
 void a(){}
}
@gavinking
Copy link
Member

I would be inclined to think that this one is a very low priority. I have never seen this kind of thing in practice.

@FroMage
Copy link
Member Author

FroMage commented Jan 25, 2012

Good point, moving it off M2, we can always reschedule if we end up needing it sooner.

@FroMage
Copy link
Member Author

FroMage commented Feb 3, 2012

Sort-of related is #337, where we have an issue with Java fields (or JavaBean properties) named hash or string, because they conflict with our erasure to hashCode() and toString() and cannot be considered as overriding them.

@FroMage
Copy link
Member Author

FroMage commented Oct 1, 2012

M5.

@FroMage
Copy link
Member Author

FroMage commented Feb 15, 2013

Moving to M6

@FroMage
Copy link
Member Author

FroMage commented Oct 31, 2013

This depends on ceylon/ceylon-spec#833 and as such is moved to 1.1

@FroMage FroMage modified the milestones: 1.2, 1.1 Apr 3, 2014
@FroMage
Copy link
Member Author

FroMage commented Apr 3, 2014

Moving to 1.2

@vietj
Copy link

vietj commented Sep 4, 2014

We do have this Java API:

  NetSocket ssl(Handler<Void> handler);
  boolean isSsl();

This shadowing prevents us obtaining the ssl property value.

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

3 participants