view test/tools/javac/lambda/BadTargetType.out @ 744:e23ed3e167e8

Futher improvements to compiler diagnostics. The compiler now emits detailed information about SAM conversion failures occurring in argument position.
author mcimadamore
date Thu, 21 Oct 2010 15:06:09 +0100
parents caadb412a4a6
children
line wrap: on
line source
BadTargetType.java:37:24: compiler.err.invalid.target.type.for.lambda.conv.1: java.lang.Object, (compiler.misc.target.for.lambda.conv.must.be.abstract: null, kindname.class, java.lang.Object)
BadTargetType.java:38:17: compiler.err.invalid.target.type.for.lambda.conv.1: java.lang.Object, (compiler.misc.target.for.lambda.conv.must.be.abstract: null, kindname.class, java.lang.Object)
BadTargetType.java:41:9: compiler.err.cant.apply.symbol.1: kindname.method, m1, java.lang.Object, #void(int), kindname.class, BadTargetType, (compiler.misc.no.conforming.assignment.exists.1: #void(int), java.lang.Object, (compiler.misc.target.for.lambda.conv.must.be.abstract: null, kindname.class, java.lang.Object))
BadTargetType.java:42:9: compiler.err.cant.apply.symbol.1: kindname.method, m2, java.lang.Object, #void(int), kindname.class, BadTargetType, (compiler.misc.no.conforming.assignment.exists.1: #void(int), java.lang.Object, (compiler.misc.target.for.lambda.conv.must.be.abstract: null, kindname.class, java.lang.Object))
4 errors