What am I doing wrong? hg: lambda/lambda/langtools: More bug fixes:

Howard Lovatt howard.lovatt at gmail.com
Sun Aug 15 14:46:23 PDT 2010


@Remi,

The syntaxes (sp ?) Person#compareByAge and Person#compareByAge(
Person, Person ) result in:

An exception has occurred in the compiler (1.7.0-internal). Please
file a bug at the Java Developer Connection
(http://java.sun.com/webapps/bugreport)  after checking the Bug Parade
for duplicates. Include your program and the following diagnostic in
your report.  Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
com.sun.runtime.ProxyHelper not found

The syntax Person#compareByAge() results in:

lambdas/Main.java:35: method compareByAge in class Person cannot be
applied to given types
    Arrays.sort( people, Person#compareByAge() );
                               ^
  required: Person,Person
  found: no arguments

Implying that Person#compareByAge( Person, Person ) is the correct
syntax, however that causes the above exception.

-- 
  -- Howard.


More information about the lambda-dev mailing list