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: ...@@ -27,7 +27,7 @@ private:
friend ::djinni::JniClass<NativeTextboxListener>; friend ::djinni::JniClass<NativeTextboxListener>;
friend ::djinni::JniInterface<::textsort::TextboxListener, 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: public:
JavaProxy(JniType j); JavaProxy(JniType j);
......
...@@ -6,6 +6,10 @@ second_listener = interface +o { ...@@ -6,6 +6,10 @@ second_listener = interface +o {
second(); 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 { listener_caller = interface +c {
static init(first_l: first_listener, second_l: second_listener): listener_caller; static init(first_l: first_listener, second_l: second_listener): listener_caller;
callFirst(); callFirst();
......
...@@ -10,6 +10,12 @@ namespace testsuite { ...@@ -10,6 +10,12 @@ namespace testsuite {
class FirstListener; class FirstListener;
class SecondListener; 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 { class ListenerCaller {
public: public:
virtual ~ListenerCaller() {} virtual ~ListenerCaller() {}
......
...@@ -7,6 +7,12 @@ import java.util.concurrent.atomic.AtomicBoolean; ...@@ -7,6 +7,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
import javax.annotation.CheckForNull; import javax.annotation.CheckForNull;
import javax.annotation.Nonnull; 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 class ListenerCaller {
public abstract void callFirst(); public abstract void callFirst();
......
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
@protocol DBSecondListener; @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 @interface DBListenerCaller : NSObject
+ (nullable DBListenerCaller *)init:(nullable id<DBFirstListener>)firstL + (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