Commit c88ee922 authored by Eric Bruneton's avatar Eric Bruneton

Merge branch 'type-var-extends-0' into 'master'

Type variables extending other variables should include the separator

See merge request !89
parents 4084b2db 3dfdef5c
Pipeline #596 passed with stage
in 6 minutes and 2 seconds
......@@ -217,7 +217,8 @@ public final class TraceSignatureVisitor extends SignatureVisitor {
@Override
public void visitTypeVariable(final String name) {
declaration.append(name);
declaration.append(separator).append(name);
separator = "";
endType();
}
......
......@@ -73,6 +73,11 @@ public class TraceSignatureVisitorTest {
"false",
"<K extends java.lang.Enum<K>, V> extends java.util.AbstractMap<K, V> implements java.io.Serializable, java.lang.Cloneable",
"<K:Ljava/lang/Enum<TK;>;V:Ljava/lang/Object;>Ljava/util/AbstractMap<TK;TV;>;Ljava/io/Serializable;Ljava/lang/Cloneable;"
},
{
"false",
"<T, R extends T>",
"<T:Ljava/lang/Object;R:TT;>Ljava/lang/Object;"
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment