Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.6
-
Fix Version/s: JRuby 2
-
Component/s: Java Integration
-
Labels:None
-
Number of attachments :
Description
I am working on a library which uses mostly interfaces. It would be really nice if java_alias (and the others) could resolve signatures of the interface, so I can:
module org::bukkit::Entity
java_alias :teleport_java, :teleport, [org.bukkit.Location]
def teleport(loc)
teleport_java coerce_location(loc)
end
end
Unfortunately, java_alias only seems to work for classes. Bonus points for whoever takes this up...Remove some truly ancient method java_alias used for a completely different purpose than the java_alias we document in our book in core_ext/module ![]()
For anyone who needs a workaround, call .java_class on the interface that you pass to java_alias.