Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ public void onObservedUpdate(PointsToAnalysis bb) {
if (!isFlowEnabled()) {
return;
}
var state = getState();
if (state.isPrimitive()) {
return;
}
// SAM metadata must be preserved if a functional interface implementation reaches the
// callsite.
for (AnalysisObject object : getState().objects(bb)) {
for (AnalysisObject object : state.objects(bb)) {
Optional<AnalysisMethod> sam = ReflectUtil.singleAbstractMethodForClass(bb.getMetaAccess(), object.type());
if (sam.isPresent()) {
bb.addRootMethod(sam.get(), false, "SAM method to JS, registered in " + InterceptJSInvokeTypeFlow.class);
Expand Down