j2objc-contrib / j2objc-common-libs-e2e-test

End-to-end tests for translating, compiling, and linking common Java libraries into Objective C using j2objc
https://github.com/j2objc-contrib
Apache License 2.0
12 stars 5 forks source link

com.fasterxml.jackson.core:jackson-core:2.6.2 - J2ObjC continuous build #48

Open brunobowden opened 8 years ago

brunobowden commented 8 years ago

Low-level incremental ("streaming") parser and generator abstractions used by Jackson Data Processor.

cc @cowtowncoder, @tatu-at-salesforce - FYI for you both - no need to take action. This concerns supporting translation of the RxJava library to Objective-C such that it can be used on iOS. This issue is specifically for testing the translation as part of a continuous build using Google's Java to Objective-C conversion tool, known as "J2ObjC".

cc @saruye

Other Jackson artifactsIds to support:

cowtowncoder commented 8 years ago

@brunobowden Thanks. Sounds fascinating; I hope things work well. Let me know if there is something that I can help with.

saruye commented 8 years ago

@brunobowden thanks from me as well. If I can be of any support, I would like to help as well. I am currently at the point where I have to decide whether to invest more time into getting jackson to work on ios or if we need to write some native code to handle the json.

maybe this helps: https://github.com/saruye/jackson-databind/tree/j2objc

I also created a multi-module project locally with core and annotations. In core there failed two tests in the ios code, annotations doesn't have any tests. If it helps I could try to push this into a github project as well.

brunobowden commented 8 years ago

The intent is for this "e2e" repo to be the canonical reference for builds with J2ObjC. More than that, because of it's continuous integration, it will ensure that fixes stay fixed. The j2objc-discuss thread will hopefully be helpful for working out most of the problems.

On Wed, Oct 7, 2015 at 1:23 PM saruye notifications@github.com wrote:

@brunobowden https://github.com/brunobowden thanks from me as well. If I can be of any support, I would like to help as well. I am currently at the point where I have to decide whether to invest more time into getting jackson to work on ios or if we need to write some native code to handle the json.

maybe this helps: https://github.com/saruye/jackson-databind/tree/j2objc

I also created a multi-module project locally with core and annotations. In core there failed two tests in the ios code, annotations doesn't have any tests. If it helps I could try to push this into a github project as well.

— Reply to this email directly or view it on GitHub https://github.com/j2objc-contrib/j2objc-common-libs-e2e-test/issues/48#issuecomment-146317376 .

saruye commented 8 years ago

I added a PR (https://github.com/j2objc-contrib/j2objc-common-libs-e2e-test/pull/50) which includes a simple unit test that passes in java and fails when run as objective-c executable.

The test checks that a json can be mapped to an object. The object has a list of embedded objects. In the test is checked that the embedded objects have the expected type. I am no ios developer so I can only assume what the problem is. It seems that jackson cannot extract the generic type of the list field and just puts LinkedHashMaps into the list instead of parsing the list elements to the expected type.

brunobowden commented 6 years ago

This project is no longer being actively developed