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
It is not normally possible to instantiate a template explicitly using any (i.e, "no type") as the argument for a type parameter. However, if an activity template is implicitly instantiated in an invocation, then it is possible for the implicit template parameter argument to be any. For examaple,
Exception in thread "main" java.lang.NullPointerException
at org.modeldriven.alf.syntax.expressions.impl.QualifiedNameImpl.updateForBinding(QualifiedNameImpl.java:872)
The text was updated successfully, but these errors were encountered:
The problem is that QualifiedName.updateForBinding checks if a template argument is null, but it doesn't check whether the argument is any, which is representated by ElementReferenceImpl.any rather than null. This causes the NPR when an attempt is made to get the qualified name of the template argument.
It is not normally possible to instantiate a template explicitly using
any
(i.e, "no type") as the argument for a type parameter. However, if an activity template is implicitly instantiated in an invocation, then it is possible for the implicit template parameter argument to beany
. For examaple,causes the exception:
The text was updated successfully, but these errors were encountered: