Mehrfache gleiche Ergebnis #275

Open
opened 2020-01-31 10:26:52 +00:00 by pl · 0 comments
Owner

import java.util.Stack;
import java.util.Vector;

class OverloadingMain {

mmMain(x) { return new O1().mm(x); }

}

mit

Compiled from "O1.java"
public class O1 {
public O1();
public java.util.Stack mm(java.util.Stack);
public java.util.Vector mm(java.util.Vector);
}

liefert
[[(TPH FIR, TPH FIP), (TPH M = java.util.Stack), (TPH K = java.util.Stack), (TPH L = java.util.Stack), (TPH FIQ, TPH FIP)],
[(TPH FIU, TPH FIT), (TPH K = java.util.Vector), (TPH FIS, TPH FIT), (TPH M = java.util.Vector), (TPH L = java.util.Vector)],
[(TPH M = java.util.Vector), (TPH FIX, TPH FIW), (TPH FIV, TPH FIW), (TPH K = java.util.Vector), (TPH L = java.util.Vector)]]

Das eine Vector-Ergnis ist zuviel

import java.util.Stack; import java.util.Vector; class OverloadingMain { mmMain(x) { return new O1().mm(x); } } mit Compiled from "O1.java" public class O1 { public O1(); public <T> java.util.Stack<T> mm(java.util.Stack<T>); public <T> java.util.Vector<T> mm(java.util.Vector<T>); } liefert [[(TPH FIR, TPH FIP), (TPH M = java.util.Stack<TPH FIP>), (TPH K = java.util.Stack<TPH FIP>), (TPH L = java.util.Stack<TPH FIP>), (TPH FIQ, TPH FIP)], [(TPH FIU, TPH FIT), (TPH K = java.util.Vector<TPH FIT>), (TPH FIS, TPH FIT), (TPH M = java.util.Vector<TPH FIT>), (TPH L = java.util.Vector<TPH FIT>)], [(TPH M = java.util.Vector<TPH FIW>), (TPH FIX, TPH FIW), (TPH FIV, TPH FIW), (TPH K = java.util.Vector<TPH FIW>), (TPH L = java.util.Vector<TPH FIW>)]] Das eine Vector-Ergnis ist zuviel
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#275
No description provided.