8022738: doclet should only generate functional interface text if source >= 8

Reviewed-by: jjg
This commit is contained in:
Bhavesh Patel 2013-08-30 16:38:54 -07:00
parent 4cf2250826
commit b8f8cab5f4
4 changed files with 54 additions and 5 deletions

View file

@ -289,7 +289,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
}
public boolean isFunctionalInterface() {
return env.types.isFunctionalInterface(tsym);
return env.types.isFunctionalInterface(tsym) && env.source.allowLambda();
}
/**