Skip to content

-AresolveReflection errors on void.class #432

@GoogleCodeExporter

Description

@GoogleCodeExporter
class Test {

    Class<?> test() {
        return void.class;
    }
}

error: ClassValAnnotatedTypeFactory.getClassname: did not expect VOID; invoke 
the compiler with -AprintErrorStack to see the stack trace.
Test.java:4: error: [return.type.incompatible] incompatible types in return.
        return void.class;
                   ^
  found   : Class<Void>
  required: Class<? extends Object>

Original issue reported on code.google.com by trask.st...@gmail.com on 19 Apr 2015 at 7:01

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions