Hi there,

i tried to register a TypeConverter for Files (java.io.File):

binder().convertToTypes(Matchers.subclassesOf(File.class), new TypeConverter() { @Override
           public File convert(String fileName, TypeLiteral<?> literal) {
               return new File(fileName);
           }
});

And received the following compiler error?

The method convertToTypes(Matcher<? super TypeLiteral<?>>, TypeConverter) in the type Binder is not applicable for the arguments (Matcher<Class>, new TypeConverter(){})

Any suggestions how to convince javac to eat it?
-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.


Reply via email to