SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.97k stars 1.24k forks source link

Cannot call `setBindingContext` #4142

Closed dfenerski closed 1 month ago

dfenerski commented 1 month ago

OpenUI5 version: latest

What is the expected result?

Developer can call public methods.

What happens instead?

The setBindingContext method is public and expects a sap.ui.model.Context instance as parameter, but this class is marked as abstract.

The only known subclasses are OData ones, making it impossible to correctly call the method if one works with e.g JSONModel contexts.

In TypeScript setup, this causes an error:

image

Would a PR removing the abstract tag from Context be accepted if this is indeed the correct solution?

flovogt commented 1 month ago

@dfenerski Thanks a lot for this hint. The abstract tag is removed.