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
Static methods invoked on a null string literal, returned from the second expression in a ternary operator, cause a java.util.EmptyStackException during the AST creation. The following code reproduces the error:
public class Reproducer {
void parseFailure(Reproducer o) {
(o != null ? o : null).bar();
}
static void bar() { }
}
Note that this is a particular corner case that happens only in the scenario reported above. There is no failure in the following cases:
public class Reproducer {
void parseSuccess(Reproducer o) {
(o == null ? null : o).bar();
((Reproducer) null).bar();
null.bar();
}
static void bar() { }
}
The text was updated successfully, but these errors were encountered:
Static methods invoked on a
null
string literal, returned from the second expression in a ternary operator, cause ajava.util.EmptyStackException
during the AST creation. The following code reproduces the error:Note that this is a particular corner case that happens only in the scenario reported above. There is no failure in the following cases:
The text was updated successfully, but these errors were encountered: