eclipse-ee4j / eclipse-ee4j/parsson

package-info.class files inside org.eclipse.parsson:jakarta.json are compiled with the wrong Java version

Open
#73 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Jars of [org.eclipse.parsson:jakarta.json](https://search.maven.org/artifact/org.eclipse.parsson/jakarta.json) are compiled for Java version 8 (class version 52). However, the `package-info.class` files inside versions `1.0.1`, `1.0.2`, and `1.1.1` are actually compiled for Java version 9 (class version 53).

![image](https://user-images.githubusercontent.com/90863725/203469405-22545708-5dc2-472c-ab4d-9f44de33a391.png)

![image](https://user-images.githubusercontent.com/90863725/203469504-994f147f-fb1f-4134-90e1-b46d727441fe.png)

This is causing issues with IBM Websphere Application Server. It scans the jars before loading them and refuses to load them because they have classes with version>52:

```
W com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource jakarta/json/spi/package-info.class in archive WEB-INF/lib/jakarta.json-1.1.1.jar
java.lang.IllegalArgumentException
```

A workaround is using `jakarta.json:jakarta.json-api` and `org.eclipse.parsson:parsson` instead of `org.eclipse.parsson:jakarta.json`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.