Comments (3)
java.lang.Integer is not a primitive but instead is a boxed type. So the user manual is correct. Try adding a cast jpype.JInt(1)
. That type can then be boxed. The ambiguity is that boxed types require a known size, but Python int is arbitrary size.
from jpype.
My apologies, I was not familiar with boxed types. I've been porting my code over from pyjnius
where this sort of conversion was performed automatically behind the scenes. Is there an option to do something similar in JPype or is casting the only solution?
from jpype.
I think JPype does not offer such an option.
from jpype.
Related Issues (20)
- Unresolvable ambiguous overload for booleans HOT 9
- openSUSE Tumbleweed test failure HtmlTestCase.testClass on v1.4.1
- Calling Java that uses jep
- jpype 1.4.1 on arm platform, coredump when calling byte[] clone method HOT 7
- __eq__ for comparable should use equals()? HOT 5
- Intercept Java function calls HOT 3
- Access Java Enum .name() when a .name property is defined HOT 4
- use with Java making use of jogl, other native code. HOT 1
- Silent failure of jpype.startJVM when classpath is passed - RESOLVED HOT 4
- Load class error HOT 3
- No JVM shared library file (libjvm.so) found. Try setting up the JAVA_HOME environment variable properly. HOT 1
- Python 3.11 compatibility HOT 2
- CI runs only for JDK11? HOT 2
- JVM Crash when using a specific jar : cloudera HS2Driver (Hive), any versions HOT 2
- Failing to call a class that is compiled using JDK11 HOT 1
- No module named 'java.lang' HOT 1
- Segfault in JTerminate
- startJVM crashes Apple M1 HOT 7
- Rare crashes on interpreter exit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpype.