-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the changes to keep the issue relevant ones
- Loading branch information
1 parent
c7a4b8b
commit b50f206
Showing
7 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Copyright 2024 jpy-consortium | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_gettype_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public class CyclicReferenceChild1 extends CyclicReferenceParent { | ||
private int x; | ||
|
||
private CyclicReferenceChild1(int x) { | ||
this.x = x; | ||
} | ||
|
||
public static CyclicReferenceChild1 of(int x) { | ||
return new CyclicReferenceChild1(x); | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Copyright 2024 jpy-consortium | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_gettype_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public class CyclicReferenceChild2 extends CyclicReferenceParent { | ||
} |
33 changes: 33 additions & 0 deletions
33
src/test/java/org/jpy/fixtures/CyclicReferenceGrandParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright 2024 jpy-consortium | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_gettype_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public class CyclicReferenceGrandParent { | ||
private int x; | ||
public int z = 100; | ||
|
||
public CyclicReferenceGrandParent() { | ||
} | ||
|
||
public void refChild2(CyclicReferenceChild2 child2) { | ||
} | ||
|
||
public int grandParentMethod() { | ||
return 888; | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// Copyright 2024 jpy-consortium | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_gettype_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public abstract class CyclicReferenceParent extends CyclicReferenceGrandParent { | ||
private int x; | ||
public int y = 10; | ||
|
||
public static CyclicReferenceChild1 of(int x) { | ||
return CyclicReferenceChild1.of(x); | ||
} | ||
|
||
public int parentMethod() { | ||
return 88; | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters