mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8022738: doclet should only generate functional interface text if source >= 8
Reviewed-by: jjg
This commit is contained in:
parent
4cf2250826
commit
b8f8cab5f4
4 changed files with 54 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue