[
https://issues.apache.org/jira/browse/ACCUMULO-2490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944264#comment-13944264
]
Sean Busbey commented on ACCUMULO-2490:
---------------------------------------
Yeah, [Java 7 added type inference based on target
types|http://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#target_types].
Sine the generics stuff gets thrown away are runtime, it can safely use that
feature while outputting class files for 1.6.
> Pair.fromEntry should accept bounded wild card parameters
> ---------------------------------------------------------
>
> Key: ACCUMULO-2490
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2490
> Project: Accumulo
> Issue Type: Improvement
> Components: client
> Reporter: Mike Drob
> Assignee: Christopher Tubbs
> Priority: Minor
> Labels: API, newbie
> Fix For: 1.7.0
>
>
> The following \[psuedo-]code should be legal:
> {code}
> Entry<Integer, String> entry = new Entry(10, "IO")
> Pair<Object,Object> pair = Pair.fromEntry(entry)
> {code}
> This is possible if we replace the generic parameters with bounded wild cards.
> (Effective Java SE; Item 28)
--
This message was sent by Atlassian JIRA
(v6.2#6252)