Parameter-Type nicht correct #259

Open
opened 2018-08-01 14:16:12 +00:00 by fayez.abu-alia · 0 comments

branch bytecode2
commit dcbcf873e4

Der BinaryTest liefert folgendes:

public java.lang.Number m(java.lang.Number);
descriptor: (Ljava/lang/Number;)Ljava/lang/Number;

public java.lang.Number m2(java.lang.Integer, java.lang.Integer);
descriptor: (Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Number;

public java.lang.Number m2(java.lang.Double, java.lang.Double);
descriptor: (Ljava/lang/Double;Ljava/lang/Double;)Ljava/lang/Number;

Der Typ Number darf nicht als Parameter-Type auftauchen.

Richtig wäre:

public java.lang.Number m(java.lang.Integer);
descriptor: (Ljava/lang/Integer;)Ljava/lang/Number;

public java.lang.Number m(java.lang.Double);
descriptor: (Ljava/lang/Double;)Ljava/lang/Number;

...

branch bytecode2 commit dcbcf873e4092c4f7309f28aaae60460cf780860 Der BinaryTest liefert folgendes: public java.lang.Number m(java.lang.Number); descriptor: (Ljava/lang/Number;)Ljava/lang/Number; public java.lang.Number m2(java.lang.Integer, java.lang.Integer); descriptor: (Ljava/lang/Integer;Ljava/lang/Integer;)Ljava/lang/Number; public java.lang.Number m2(java.lang.Double, java.lang.Double); descriptor: (Ljava/lang/Double;Ljava/lang/Double;)Ljava/lang/Number; Der Typ Number darf nicht als Parameter-Type auftauchen. Richtig wäre: public java.lang.Number m(java.lang.Integer); descriptor: (Ljava/lang/Integer;)Ljava/lang/Number; public java.lang.Number m(java.lang.Double); descriptor: (Ljava/lang/Double;)Ljava/lang/Number; ...
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#259
No description provided.