Skip to content

REPL :javap -fun broken under -Ydelambdafy:method #8898

@scabug

Description

@scabug

The :javap -fun C command shows the content of (some?) anonymous function declared in C, except for C itself. Its implementation assumes "anonfun" to be found in the class name, which is no longer true since scala/scala@63207e1.

luc$ qs -Ydelambdafy:method
Welcome to Scala version 2.11.3-20141010-082147-3e0164d7be (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala> class C { def f = List(1).map(_ + 1) }
defined class C

scala> :javap -fun C
Failed: No anonfuns found.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions