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

Generator generates package-info.java class in wrong location. #175

Closed
jadelkhoury opened this issue Sep 30, 2020 · 1 comment
Closed

Generator generates package-info.java class in wrong location. #175

jadelkhoury opened this issue Sep 30, 2020 · 1 comment
Assignees

Comments

@jadelkhoury
Copy link
Contributor

jadelkhoury commented Sep 30, 2020

Currently, A single Package-info.java class is produced for each adaptor.
Instead, such a class should exist for each package that contains OSLC resource classes.

This problem is most obvious when the adaptor is generated into a project different from that of the domain classes. Then the package-info.java classes is even produced in the wrong project.

To reproduce, setup a project as suggest above. Then try to do a GET on a resource, with format application/json. This results in an internal 500 error.

Exception is: throw new OslcCoreMissingNamespaceDeclarationException(namespace); (See JsonHelper class, in oslc4j-json4j-provider)

A less acute error, which nevertheless illustrates the problem is when doing a GET with say text/turtle. The response will lack the prefixes that ought to have been declared in the package-info class. Instead, the complete URIs are prointed in the body of the response.

@jadelkhoury
Copy link
Contributor Author

solved in this commit.
b2001f4

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

1 participant