Constructors in abstract classes should be static methods rather than unusable constructors #184
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi#184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
GstGL,GLContextis abstract and has a constructornewthat takes aGLDisplay, callinggst_gl_context_new. That can't be used since the class is abstract. The other constructornew_wrappedcallsgst_gl_context_new_wrappedand instead is a static method so that constructor is usable.I've worked around it by modifying the bindings so
GLContextisn't abstract, but it would be nice if this was handled automatically.