Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unrecognized field "most_recent_feature_version" #6

Closed
maxandersen opened this issue Jun 19, 2020 · 3 comments
Closed

unrecognized field "most_recent_feature_version" #6

maxandersen opened this issue Jun 19, 2020 · 3 comments

Comments

@maxandersen
Copy link
Contributor

//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS net.adoptopenjdk:net.adoptopenjdk.v3.api:0.3.3
//DEPS net.adoptopenjdk:net.adoptopenjdk.v3.vanilla:0.3.3

import net.adoptopenjdk.v3.api.AOV3Exception;
import net.adoptopenjdk.v3.vanilla.AOV3Clients;

import java.io.IOException;

class adoptopenjdk {

    public static void main(String... args) throws Exception {
        var clients = new AOV3Clients();
        try (var client = clients.createClient()) {
            var request = client.availableReleases(e -> System.out.println(e));
            var releases = request.execute();
        }
    }
}

results in:
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "most_recent_feature_version" (class net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON), not marked as ignorable (4 known properties: "available_releases", "most_recent_lts", "available_lts_releases", "most_recent_feature_release"])

@maxandersen
Copy link
Contributor Author

same error happens when running tests:

[INFO] Running net.adoptopenjdk.v3.tests.AOV3ClientsIntegrationTest
[ERROR] Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.242 s <<< FAILURE! - in net.adoptopenjdk.v3.tests.AOV3ClientsIntegrationTest
[ERROR] net.adoptopenjdk.v3.tests.AOV3ClientsIntegrationTest.testAvailableReleases  Time elapsed: 0.491 s  <<< ERROR!
net.adoptopenjdk.v3.api.AOV3ExceptionParseFailed:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "most_recent_feature_version" (class net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON), not marked as ignorable (4 known properties: "available_releases", "most_recent_lts", "available_lts_releases", "most_recent_feature_release"])
 at [Source: (GZIPInputStream); line: 17, column: 38] (through reference chain: net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON["most_recent_feature_version"])
	at net.adoptopenjdk.v3.tests.AOV3ClientsIntegrationTest.testAvailableReleases(AOV3ClientsIntegrationTest.java:66)
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException:
Unrecognized field "most_recent_feature_version" (class net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON), not marked as ignorable (4 known properties: "available_releases", "most_recent_lts", "available_lts_releases", "most_recent_feature_release"])
 at [Source: (GZIPInputStream); line: 17, column: 38] (through reference chain: net.adoptopenjdk.v3.vanilla.internal.AOV3AST$AOV3AvailableReleasesJSON["most_recent_feature_version"])
	at net.adoptopenjdk.v3.tests.AOV3ClientsIntegrationTest.testAvailableReleases(AOV3ClientsIntegrationTest.java:66)

@joschi
Copy link
Contributor

joschi commented Jun 20, 2020

@io7m
Copy link
Collaborator

io7m commented Jun 20, 2020

Fixed in #7, and insulated against future changes in #8.

@io7m io7m closed this as completed Jun 20, 2020
io7m added a commit that referenced this issue Jun 20, 2020
Release: openjdk-api-java-client 0.4.0
Change: Enable support for ignoring unrecognized fields. Thanks @joschi. (Ticket: #8)
Change: Add support for new fields. Thanks @maxandersen. (Ticket: #6)
io7m added a commit that referenced this issue Jun 20, 2020
Release: openjdk-api-java-client 0.4.0

Change: Enable support for ignoring unrecognized fields. Thanks @joschi. (Ticket: #8)
Change: Add support for new fields. Thanks @maxandersen. (Ticket: #6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants