Fehlerhafte Overloading Auflösung #49
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JavaTX/JavaCompilerCore#49
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?
Die OL.jav
import java.lang.String;
import java.lang.Integer;
import java.lang.Double;
import java.lang.Boolean;
import java.util.Vector;
public class OL {
}
class OLMain {
}
erzeugt:
public java.lang.Boolean main(java.lang.Boolean);
descriptor: (Ljava/lang/Boolean;)Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
0: new #13 // class OL
3: dup
4: invokespecial #14 // Method OL."":()V
7: astore_2
8: aload_2
9: aload_1
10: invokevirtual #17 // Method OL.m:(Ljava/lang/Double;)Ljava/lang/Double;
13: areturn
Double ist hier falsch. Vermutlich wird die falsche Methode der überladenen Methoden m aus OL.jav falsch auswählt.
Gefixt.
branch bytecode 2
commit
3c36c61077
getestet funktioniert!