42,896 questions
2
votes
0
answers
56
views
SWIG multiple inheritance problem when returning a C++ class wrapped as an interface
I'm trying to wrap a C++ class using SWIG that involves multiple inheritance and another class with a method returning a shared pointer to a class declared as an interface in SWIG. Here is a ...
1
vote
1
answer
63
views
Problem with manim rendering of the arrows
I want to use manim to render a spiral, which is crucial for later animation. Even the output says that the first arrow's module is greater than the second arrow, the render result says that the first ...
-1
votes
0
answers
28
views
How to handle JPA inheritance with Apache CXF FIQL and Criteria API (JPACriteriaQueryVisitor)? [closed]
I’m working on a Quarkus JPA repository where I use Apache CXF FIQL with JPACriteriaQueryVisitor to build dynamic queries.
It works well for simple entities, but I’m facing issues when using JPA ...
1
vote
3
answers
76
views
Inheritance of decorated classes
I'm using Python decorators to implement common functionality across multiple classes. The problem comes when I want the decorated classes to inherit from each other: super() doesn't seem to delegate ...
1
vote
0
answers
104
views
Hibernate 6 native query on parent class fails with “ORA-17006: Invalid column name”
After upgrading from Hibernate 5 to Hibernate 6, a native query that used to work now fails with an “ORA-17006: Invalid column name” error.
Entity definitions
Base class:
@Entity
@Table(name = "...
3
votes
2
answers
158
views
derived class cannot call recursively inherited member functions C++
I'm making it using multi inheritance with a pair struct that contains
an index and the type of the element in a recursive structure like this:
template<int index, typename... ts>
struct ok;
...
0
votes
1
answer
52
views
How to define a generic type with `new(...args)` in TypeScript?
In TypeScript, it is possible to define a type of a constructable class using new(...args: any):
// We have some class inheritance
abstract class Something {}
class ChildOfSomething extends Something {...
0
votes
2
answers
68
views
MyIntListImpl is not abstract and does not override abstract method getItem() in IMyDummyList [duplicate]
I don't understand why my class that extends an abstract class (which implements an interface) does not override the interface's single method. I get this error when I try to compile:
MyIntListImpl ...
1
vote
1
answer
161
views
'Member may be null' even though it is set in base constructor
Suppose in C# I have one class that inherits from another like this:
internal class TestImplementation : TestBase
{
[SetsRequiredMembers]
public TestImplementation(List<string> param) : ...
-2
votes
0
answers
95
views
C#, PowerShell: return types [duplicate]
My requirement: Make the results from PowerShell commands in my C# code; I host PowerShell directly in C#.
I want to use the output of any PowerShell command or script in my C# code.
Some PowerShell ...
4
votes
1
answer
188
views
Can there be a non-visual (without dfm) base form between TForm and any other form of the app?
In my Delphi 2009 VCL application, I have several base forms, like:
TListBaseForm = class(TForm)
TEditableListBaseFrom = class(TForm)
TEditBaseForm = class(TForm)
Each of these base forms is using ...
0
votes
1
answer
51
views
Understanding Metaclass Interaction with __init_subclass__ and Class Decorators
I'm trying to wrap my head around the precise order of operations and interactions when a Python class definition involves a metaclass, a init_subclass method, and a class decorator.
class Meta(type):
...
1
vote
3
answers
109
views
Better way to override methods on an instance of a JavaScript class
In our JavaScript web app, we use a custom-made component framework. All of our components are defined as classes using the class syntax.
We can make child classes that inherit the parents, and they ...
0
votes
0
answers
34
views
mlSerializer: "Types 'Base.ClassTest' and 'Message1_0.ClassTest' both use the XML type name 'ClassTest'" when serializing inherited classes
I am working with XML serialization in C# where I have multiple versions of a message class that inherit from each other.
Here’s a simplified version of my code:
namespace XMLSerializeProblem.Base
{
...
0
votes
1
answer
80
views
Can muli-inheritance be simulated with generic class in C# [closed]
I have several DataGrid (actually an UserControl based on a DataGrid with filtering dialog, etc.) in a WPF project which show ObservableCollection<VisualXModel> entities where VisualXModel ...