You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #2328. This code snippet takes a very long time to compile (and so does the code snippet in the previous issue):
String id(Parent parent) {
return switch (parent) {
case Child1 child -> child.id();
case Child2 child -> child.id();
case Child3 child -> child.id();
case Child4 child -> child.id();
case Child5 child -> child.id();
case Child6 child -> child.id();
case Child7 child -> child.id();
case Child8 child -> child.id();
};
}
The 7-branch case only takes ~3s for me, but the 8-branch case takes ~20s, the 9-branch case takes ~3m, growing exponentially.
What did you want to happen?
This should take very little time.
Other notes
Just like #2328, this looks to also be due to the SafeLoggingPropagation check: each pattern matching variable child is considered a captured reference and recursively triggers an analysis here.
The text was updated successfully, but these errors were encountered:
What happened?
Similar to #2328. This code snippet takes a very long time to compile (and so does the code snippet in the previous issue):
The 7-branch case only takes ~3s for me, but the 8-branch case takes ~20s, the 9-branch case takes ~3m, growing exponentially.
What did you want to happen?
This should take very little time.
Other notes
Just like #2328, this looks to also be due to the
SafeLoggingPropagation
check: each pattern matching variablechild
is considered a captured reference and recursively triggers an analysis here.The text was updated successfully, but these errors were encountered: