Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | all: Raise exceptions via mp_raise_XXX | Javier Candeira | 2017-08-13 |
| | | | | | | | | - Changed: ValueError, TypeError, NotImplementedError - OSError invocations unchanged, because the corresponding utility function takes ints, not strings like the long form invocation. - OverflowError, IndexError and RuntimeError etc. not changed for now until we decide whether to add new utility functions. | ||
* | all: Use the name MicroPython consistently in comments | Alexander Steffen | 2017-07-31 |
| | | | | | There were several different spellings of MicroPython present in comments, when there should be only one. | ||
* | unix/modjni: Convert to mp_rom_map_elem_t. | Paul Sokolovsky | 2017-07-30 |
| | |||
* | all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. | Damien George | 2017-06-15 |
| | |||
* | all: Consistently update signatures of .make_new and .call methods. | Paul Sokolovsky | 2017-01-04 |
| | | | | | Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build. | ||
* | all: Remove 'name' member from mp_obj_module_t struct. | Damien George | 2016-09-22 |
| | | | | One can instead lookup __name__ in the modules dict to get the value. | ||
* | unix/modjni: array(): Support creation of object arrays. | Paul Sokolovsky | 2016-09-18 |
| | |||
* | unix/modjni: Add array() top-level function to create Java array. | Paul Sokolovsky | 2016-09-17 |
| | | | | | Takes element primitive type encoded as a char per standard JNI encoding, and array size. TODO: Support object arrays. | ||
* | unix/modjni: Implement subscription for object arrays. | Paul Sokolovsky | 2016-09-16 |
| | |||
* | unix/modjni: Add missing get_jclass_name() function. | Paul Sokolovsky | 2015-11-11 |
| | |||
* | unix/modjni: Actually check argument type when doing method resolution. | Paul Sokolovsky | 2015-10-23 |
| | | | | | | This is required to properly select among overloaded methods. It however relies on java.lang.Object-overloaded method to come last, which appears to be the case for OpenJDK. | ||
* | unix/modjni: Don't pass Java object to a method which doesn't expect it. | Paul Sokolovsky | 2015-10-22 |
| | | | | | | For example, don't pass Integer to double method. This is still not selective enough to choose the right overloaded method maong those taking objects. | ||
* | unix/modjni: Add iteration support for Java List objects. | Paul Sokolovsky | 2015-10-14 |
| | | | | | Using generic iteration-via-subscription support (TODO: factor it out for reuse). | ||
* | unix/modjni: call_method: Check for Java exception after method return. | Paul Sokolovsky | 2015-10-14 |
| | |||
* | py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. | Paul Sokolovsky | 2015-10-11 |
| | |||
* | unix/modjni: py2jvalue: Support bool and None values. | Paul Sokolovsky | 2015-10-10 |
| | |||
* | unix/modjni: jvalue2py() is currently not used. | Paul Sokolovsky | 2015-10-09 |
| | | | | Not remove so far, may be needed later. | ||
* | unix/modjni: Allow to access fields of objects. | Paul Sokolovsky | 2015-10-08 |
| | |||
* | unix/modjni: After Call*Method(), Java exception should always be checked. | Paul Sokolovsky | 2015-10-07 |
| | | | | | OpenJDK seemed to return NULL in case of exception, but Dalvik returns arbitrary value, so skip such "optimizations". | ||
* | unix/modjni: jclass.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | 2015-10-04 |
| | |||
* | unix/modjni: jobject.__str__/__repr__: Return Java .toString() value. | Paul Sokolovsky | 2015-10-03 |
| | |||
* | unix/modjni: Convert Java's IndexOutOfBoundsException to Python's IndexError. | Paul Sokolovsky | 2015-10-02 |
| | |||
* | unix/modjni: Propagate Java exceptions on list access. | Paul Sokolovsky | 2015-10-01 |
| | |||
* | unix/modjni: Fix method argument matching. | Paul Sokolovsky | 2015-09-30 |
| | |||
* | unix/modjni: Implement len() for objects with java.util.List interface. | Paul Sokolovsky | 2015-09-29 |
| | |||
* | unix/modjni: call_method: Delete done local references in loop. | Paul Sokolovsky | 2015-09-28 |
| | | | | To avoid local ref table overflow. | ||
* | unix/modjni: call_method: Better resource release. | Paul Sokolovsky | 2015-09-27 |
| | |||
* | unix/modjni: call_method(): If name doesn't match, cleanup via goto next_method. | Paul Sokolovsky | 2015-09-26 |
| | |||
* | unix/modjni: Need to really use per-rettype Call*Method functions. | Paul Sokolovsky | 2015-09-26 |
| | |||
* | unix/modjni: new_jobject(): Handle null reference. | Paul Sokolovsky | 2015-09-24 |
| | |||
* | unix/modjni: Factor out is_object_type(). | Paul Sokolovsky | 2015-09-23 |
| | |||
* | unix/modjni: Move type analysis logic to new_jobject(), for reuse. | Paul Sokolovsky | 2015-09-22 |
| | |||
* | unix/modjni: Support for subscripting of Java lists (r/o so far). | Paul Sokolovsky | 2015-09-21 |
| | |||
* | unix/modjni: jvalue2py: Handle boolean. | Paul Sokolovsky | 2015-09-20 |
| | |||
* | unix/modjni: py2jvalue: Pass jobject's down to Java. | Paul Sokolovsky | 2015-09-19 |
| | | | | So far, no signature check is done (TODO). | ||
* | unix/modjni: py2jvalue: Handle both int and long java types (with TODO for ↵ | Paul Sokolovsky | 2015-09-18 |
| | | | | long). | ||
* | unix/modjni: jvalue2py: Handle class-containing jvalues. | Paul Sokolovsky | 2015-09-17 |
| | |||
* | unix/modjni: Add env() module function. | Paul Sokolovsky | 2015-09-16 |
| | | | | | Useful to load native method libraries not loaded by VM (as happens on Android). | ||
* | unix/modjni: Return any object type value as a jobject. | Paul Sokolovsky | 2015-09-15 |
| | |||
* | unix/modjni: Return Java null as Python None. | Paul Sokolovsky | 2015-09-14 |
| | |||
* | unix/modjni: Support static methods. | Paul Sokolovsky | 2015-09-14 |
| | |||
* | unix/modjni: Factor out new_jobject(), jvalue2py() functions. | Paul Sokolovsky | 2015-09-13 |
| | |||
* | unix/modjni: Factor out py2jvalue() function. | Paul Sokolovsky | 2015-09-12 |
| | |||
* | unix/modjni: "jni" module to interface to JNI-compliant JavaVM. | Paul Sokolovsky | 2015-09-11 |
This includes Android Dalvik VM for example. Example usage: import jni System = jni.cls("java/lang/System") System.out.println("Hello, Java!") |