robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Java inheritance

Open uvlad7 opened this issue 1 year ago • 2 comments

And support - if not supported yet - and tests. The best way, I believe, is to make Rust wrapper of a child java class a NewType for a Rust wrapper of the according Java ancestor, with Deref trait implemented. It won't work exactly like in Java - with virtual methods - but it'll allow to call ancestor's methods from the descendant.

uvlad7 avatar Mar 28 '24 21:03 uvlad7

Need to ensure it works well with abstract classes. And how to support interfaces: traits, separate types with cheap as/into conversions?

uvlad7 avatar Apr 01 '24 15:04 uvlad7

Also check nested and inner classes, static fields

uvlad7 avatar Apr 10 '24 12:04 uvlad7