Skip to content

Commit

Permalink
SubstitutionType should delegate to substituted type for hasDefaultMe…
Browse files Browse the repository at this point in the history
…thods and declaresDefaultMethods
  • Loading branch information
dougxc committed Jun 26, 2020
1 parent d383d80 commit df31a66
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,12 @@ public void link() {

@Override
public boolean hasDefaultMethods() {
assert !isInterface() : "only interfaces can have default methods";
return false;
return original.hasDefaultMethods();
}

@Override
public boolean declaresDefaultMethods() {
assert !isInterface() : "only interfaces can have default methods";
return false;
return original.declaresDefaultMethods();
}

@Override
Expand Down

0 comments on commit df31a66

Please sign in to comment.