Coder Social home page Coder Social logo

Comments (14)

toddobryan avatar toddobryan commented on June 7, 2024 1

Works like a charm now! Thank you!

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

Hello @toddobryan
Would you please tell me which test class are you trying?

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

Now I identified the error location.

from jsonp-test-suite.

toddobryan avatar toddobryan commented on June 7, 2024

Sorry about that. I wasn't sure the right way to fix it or I would have given it a try.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

It's OK. I will fix the problem in a few days.
Thank you for trying this test suite.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

HI @toddobryan
I fixed the problem. Could you please test your implementation with the current master snapshot?

<dependency>
    <groupId>org.leadpony</groupId>
    <artifactId>jsonp-test-suite</artifactId>
    <version>master-SNAPSHOT</version>
</dependency>

from jsonp-test-suite.

toddobryan avatar toddobryan commented on June 7, 2024

Will do. Thanks again! Also, this suite caught a mistake in Jackson Core for which I've submitted a pull request: FasterXML/jackson-core#557

I leaned heavily on your test structure, but had to change it a bit because of the difference in the way Jackson specifies locations. I may have borrowed enough of your code that they'd like you to provide a contributor license agreement, if you don't mind. If you do mind, I'll rework everything so that it doesn't depend on your code.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

Hello @toddobryan
Thank you for your feedback.
I am glad hear it works properly for you.
I do not mind to accept the license agreement, but I think it is better for you that you rework or minimize the test cases copied. I am the author of a JSON parser, which is one of JSON-P implementation, therefore I may be a small competitor for Jackson's team.

from jsonp-test-suite.

toddobryan avatar toddobryan commented on June 7, 2024

Since the tests aren't distributed with the library, they were okay with them. Here's the commit...if there's anything in there that you would like me to remove, let me know.

https://github.com/FasterXML/jackson-core/pull/557/files

from jsonp-test-suite.

toddobryan avatar toddobryan commented on June 7, 2024

The reason this even exists is that I was working on a JSON-P implementation based on Jackson, so your tests caught problems in Jackson that I had converted to JSON-P.

I've reached the point where a lot of the Jackson conversion is done, but there's still a lot of JSON-P to implement--all of the Patch, Pointer, etc., stuff that really seems like, once you've converted from another representation into the javax.json structures, you could just use a generic implementation of those.

I was thinking of using Joy for that, but wanted to make sure that you don't object. The idea would be that I'd implement JsonValue and its subclasses based on Jackson and then defer to the Joy implementations of things like JsonPointer, JsonPatch, etc. But that's using an awful lot of your code to let people use another parser library, so I wanted to ask you first.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

I was thinking of using Joy for that, but wanted to make sure that you don't object. The idea would be that I'd implement JsonValue and its subclasses based on Jackson and then defer to the Joy implementations of things like JsonPointer, JsonPatch, etc. But that's using an awful lot of your code to let people use another parser library, so I wanted to ask you first.

No I don't object to it.
Joy is licensed under Apache License 2.0, so you can freely use it if and only if the license conditions are fully met. For example, you copied the files in this repository but your repository seems to lack NOTICE file, which may be considered as a license violation. Please see 4. Redistribution. d in the Apache License 2.0.
If you need further discussion in regards to Joy, please create a new issue at Joy.
Thank you.

from jsonp-test-suite.

toddobryan avatar toddobryan commented on June 7, 2024

Major apologies. I should not have posted those files. I just copied them because I was too lazy to figure out how to run the tests by depending on the jar and don't intend them to be part of the final repo. I'm traveling this weekend, but as soon as I get home, I'll create a new repo without the file, and will add a README with a big thank you for the test suite. Also, if you'd prefer I not use issue comments for communication, my email is [email protected] and I'd be happy to use email instead.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

@toddobryan
Do not worry about it. It is a trivial mistake anyone does.

from jsonp-test-suite.

leadpony avatar leadpony commented on June 7, 2024

I close this issue because the bug is fixed in the latest release 1.4.0. Please see also the changelog.
Thank you.

from jsonp-test-suite.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.