TestVector #80

Closed
opened 2021-02-25 21:44:05 +00:00 by pl · 1 comment
Owner

fogg.allConstraints: [T < W, W < ZU]
fogg.posOfTPHs: {T=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]], W=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)], PairTphMethod[METHOD,TPH Wid(TPH W)]], ZU=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]]}
fogg.classConstraints: []
fogg.methodConstraintsWithPosition:
{voidm(java/util/Vectorjava/util/Vector)=[T < W, W < ZU, ZU < java/lang/Object],
TPH Wid(TPH W)=[W < ZU, ZU < java/lang/Object]}

Erwartet würde:

import java.util.Vector;

public class TestVector {

<T extends S, S> void m(Vector <T> v, Vector<S>  w) {
	w.addElement(id(v.elementAt(0)));
}

<T> T id(T x) {
	return x;
}

}

fogg.allConstraints: [T < W, W < ZU] fogg.posOfTPHs: {T=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]], W=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)], PairTphMethod[METHOD,TPH Wid(TPH W)]], ZU=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]]} fogg.classConstraints: [] fogg.methodConstraintsWithPosition: {voidm(java/util/Vectorjava/util/Vector)=[T < W, W < ZU, ZU < java/lang/Object], TPH Wid(TPH W)=[W < ZU, ZU < java/lang/Object]} Erwartet würde: import java.util.Vector; public class TestVector { <T extends S, S> void m(Vector <T> v, Vector<S> w) { w.addElement(id(v.elementAt(0))); } <T> T id(T x) { return x; } }
Author
Owner

(In reply to Martin Plümicke from comment #0)

fogg.allConstraints: [T < W, W < ZU]
fogg.posOfTPHs:
{T=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]],
W=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)],
PairTphMethod[METHOD,TPH Wid(TPH W)]],
ZU=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]]}
fogg.classConstraints: []
fogg.methodConstraintsWithPosition:
{voidm(java/util/Vectorjava/util/Vector)=[T < W, W < ZU, ZU <
java/lang/Object],
TPH Wid(TPH W)=[W < ZU, ZU < java/lang/Object]}

Erwartet würde:

import java.util.Vector;

public class TestVector {

<T extends W, W extends ZU, ZU> void m(Vector <T> v, Vector<ZU>  w) {
  w.addElement(id(v.elementAt(0)));

}

T id(W x) {
return x;
}
}

(In reply to Martin Plümicke from comment #0) > fogg.allConstraints: [T < W, W < ZU] > fogg.posOfTPHs: > {T=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]], > W=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)], > PairTphMethod[METHOD,TPH Wid(TPH W)]], > ZU=[PairTphMethod[METHOD,voidm(java/util/Vectorjava/util/Vector)]]} > fogg.classConstraints: [] > fogg.methodConstraintsWithPosition: > {voidm(java/util/Vectorjava/util/Vector)=[T < W, W < ZU, ZU < > java/lang/Object], > TPH Wid(TPH W)=[W < ZU, ZU < java/lang/Object]} > > Erwartet würde: > > import java.util.Vector; > > public class TestVector { > > <T extends W, W extends ZU, ZU> void m(Vector <T> v, Vector<ZU> w) { > w.addElement(id(v.elementAt(0))); > } > > <W> T id(W x) { > return x; > } > }
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: JavaTX/JavaCompilerCore#80
No description provided.