[JAVA-4399] OSGi package import of jdk.net in mongodb-driver-core-4.3.1.jar Created: 25/Aug/21 Updated: 28/Oct/23 Resolved: 22/Nov/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Packaging |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Donald Duck | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | external-user | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The bundle specifies JavaSE-8 as its minimum requirement in its MANIFEST.MF. Yet, its package imports require jdk.net which in a regular Equinox OSGi environment is not part of JavaSE-1.8.profile. With this, projects that include mongodb-driver-core-4.3.1.jar won't compile in a Maven/Tycho build. To test things, I've removed the package import on jdk.net from the JAR's manifest, and things seems to work fine. Either you should require the Equinox folks to include jdk.net in the JavaSE-8.profile or you should refrain from requiring it in bundles that claim to live with (thanks!) Java8. |
| Comments |
| Comment by Githook User [ 09/Dec/21 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Build: Fix Manifest for jdk.net
|
| Comment by Githook User [ 22/Nov/21 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Build: Fix Manifest for jdk.net
|
| Comment by Ross Lawley [ 19/Nov/21 ] |
|
Thanks for reporting this mongo@homemp3.dyndns.org, Apologies for lack of action on this ticket, it fell through the cracks and took some time to be allocated to the correct team. |
| Comment by Donald Duck [ 25/Aug/21 ] |
|
https://www.mail-archive.com/user@karaf.apache.org/msg22443.html points at this issue, too. The solution to add something to etc/jre.properties doesn't work here as we're talking about a Tycho/Maven build. |
| Comment by Donald Duck [ 25/Aug/21 ] |
|
JavaSE-9.profile in org.eclipse.osgi_3.16.100v20201030-1916.jar doesn't contain jdk.net either. |