Skip to content

JPype method overloading MCVE

Notifications You must be signed in to change notification settings

ctrueden/jpype-mcve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCVE illustrating JPype method overloading woes.

To reproduce

  1. Install Java

  2. Make an environment with jpype available:

    conda create -n jpype jpype1
    conda activate jpype1
    
  3. Build and run:

    ./build.sh
    python run.py
    

Expected output

Class path = .
Traceback (most recent call last):
  File "run.py", line 28, in <module>
    thing.doStuff()
TypeError: No matching overloads found for com.mystuff.DoStuffWithArgs.doStuff(), options are:
	public default void com.mystuff.DoStuffWithArgs.doStuff(java.lang.String)

About

JPype method overloading MCVE

Resources

Stars

Watchers

Forks