Commit 49018487 authored by Andrew Twyman's avatar Andrew Twyman

Document purpose of new test

Re-generate example
parent 020d9341
......@@ -27,7 +27,7 @@ private:
friend ::djinni::JniClass<NativeTextboxListener>;
friend ::djinni::JniInterface<::textsort::TextboxListener, NativeTextboxListener>;
class JavaProxy final : ::djinni::JavaProxyCacheEntry, public ::textsort::TextboxListener
class JavaProxy final : ::djinni::JavaProxyHandle<JavaProxy>, public ::textsort::TextboxListener
{
public:
JavaProxy(JniType j);
......
......@@ -6,6 +6,10 @@ second_listener = interface +o {
second();
}
# Tester for the ability to call two interfaces which might be
# implemented on the same object. That's not relevant in all
# languages, due to the details of multiple inheritance and object
# comparison.
listener_caller = interface +c {
static init(first_l: first_listener, second_l: second_listener): listener_caller;
callFirst();
......
......@@ -10,6 +10,12 @@ namespace testsuite {
class FirstListener;
class SecondListener;
/**
* Tester for the ability to call two interfaces which might be
* implemented on the same object. That's not relevant in all
* languages, due to the details of multiple inheritance and object
* comparison.
*/
class ListenerCaller {
public:
virtual ~ListenerCaller() {}
......
......@@ -7,6 +7,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
* Tester for the ability to call two interfaces which might be
* implemented on the same object. That's not relevant in all
* languages, due to the details of multiple inheritance and object
* comparison.
*/
public abstract class ListenerCaller {
public abstract void callFirst();
......
......@@ -7,6 +7,12 @@
@protocol DBSecondListener;
/**
* Tester for the ability to call two interfaces which might be
* implemented on the same object. That's not relevant in all
* languages, due to the details of multiple inheritance and object
* comparison.
*/
@interface DBListenerCaller : NSObject
+ (nullable DBListenerCaller *)init:(nullable id<DBFirstListener>)firstL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment