Skip to content

Resource returns an Incorrect content type in Java 9 #1285

Open
@adolski

Description

@adolski

I have a resource subclass that provides HTML and JSON representations using @Get("html") and @Get("json") annotations. In Java 8, the correct representation is returned based on the value of the Accept header. In Java 9, the Accept header is not respected and HTML is always returned.

I've assembled a minimal Restlet 2.3.10 JSE application to demo this: https://github.com/adolski/restlet-jdk9-issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions