Skip to content

Generic signature of lambda missing method parameters #3476

Closed
@smarter

Description

@smarter

I haven't managed to minimize it, but if you compile scalacheck with sbt jvm/compile and then do javap -p -v jvm/target/scala-0.5/classes/org/scalacheck/ArbitraryArities.class there's something fishy:

private static org.scalacheck.Gen<scala.Function1<T1, Z>> arbFunction1$$anonfun$1();
  descriptor: (Lorg/scalacheck/Arbitrary;Lorg/scalacheck/Cogen;)Lorg/scalacheck/Gen;
  // body skipped ...
  Signature: #1286                        // ()Lorg/scalacheck/Gen<Lscala/Function1<TT1;TZ;>;>;

The generic signature is missing the method parameters that can be seen in the descriptor. I noticed this because it crashes the cfr decompiler.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions