namgk / ambienttalk

Automatically exported from code.google.com/p/ambienttalk
0 stars 0 forks source link

Casting based on type tags #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When an object is being passed to an overloaded Java method, it should be 
possible to take the type 
tags of the object into account to further distinguish between possible 
signatures. This way the 
method needs not to be casted provided that the object that is passed has the 
correct type tag.

Original issue reported on code.google.com by smost...@gmail.com on 18 Feb 2009 at 4:46

GoogleCodeExporter commented 8 years ago
This avoids for instance the following:

Overloaded Java constructor has 3 matches:
TreeSet.new(<obj:751090{compare}@[java.util.Comparator]>)
public java.util.TreeSet(java.util.Comparator)
public java.util.TreeSet(java.util.Collection)
public java.util.TreeSet(java.util.SortedSet)

Original comment by smost...@gmail.com on 18 Feb 2009 at 4:47