TPH nicht im Resultset #216
Labels
No Label
Codegen
confirmed
duplicate
Eclipse-Plugin
Feature Request
generics
in progress
invalid
JavaCompilerCore
needs info
Parser
Trash
Type
Unify
won't fix
works for me
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JavaTX/JavaCompilerCore#216
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beispiel
(in resources/insertGenericsJav/TestVector.jav)
import java.util.Vector;
public class TestVector {
}
TestVector()({
super(());
})::TPH AN
TPH N m(TPH O v, TPH P w)({
((w)::TPH P.addElement Signature: [TPH AA, TPH AB](((this)::TPH Q.id Signature: [TPH W, TPH X](((v)::TPH O.elementAt Signature: TPH S, TPH T)::TPH U))::TPH Y))::TPH AC;
return;
})::TPH AE
TPH AF id(TPH AG x)({
return (x)::TPH AG;
})::TPH AH
TestVector()({
super(());
})::TPH AK
}
AA ist in der Signatur vorhanden. Die Constraints sind:
[(U < AG), (ACY < U), (AG < AF), (Y < ACX), (AF < Y)]
Die Lösung ohne Anwendung der Generated Generics wäre:
import java.util.Vector;
public class TestVector {
}
Die Brücke bilden:
ACY extends U, U extends AG, AG extends AF, AF extends Y, Y extends ACX
Nach der Anwendung der Generated Generics sähe das so aus:
import java.util.Vector;
public class TestVector {
}
Das
public class TestVector {
public TestVector();
public <ACY, ACX> void m(java.util.Vector, java.util.Vector);
public AG id(AG);
}
ist also nur ins sofern alsch als dass "ACY extends ACX" fehlt