René's URL Explorer Experiment


Title: Using --release compiler option vs -source and -target · Issue #34 · scijava/pom-scijava-base · GitHub

Open Graph Title: Using --release compiler option vs -source and -target · Issue #34 · scijava/pom-scijava-base

X Title: Using --release compiler option vs -source and -target · Issue #34 · scijava/pom-scijava-base

Description: I ran into a problem with building BigVolumeViewer with JDK 11 (and Maven). pietzsch@mycroft:~/workspace/bigdataviewer/bigvolumeviewer-core (master)$ mvn clean install # 1 [15:22:38] [INFO] Scanning for projects... [INFO] [INFO] --------...

Open Graph Description: I ran into a problem with building BigVolumeViewer with JDK 11 (and Maven). pietzsch@mycroft:~/workspace/bigdataviewer/bigvolumeviewer-core (master)$ mvn clean install # 1 [15:22:38] [INFO] Scannin...

X Description: I ran into a problem with building BigVolumeViewer with JDK 11 (and Maven). pietzsch@mycroft:~/workspace/bigdataviewer/bigvolumeviewer-core (master)$ mvn clean install # 1 [15:22:38] [INFO] Scannin...

Opengraph URL: https://github.com/scijava/pom-scijava-base/issues/34

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using --release compiler option vs -source and -target","articleBody":"I ran into a problem with building BigVolumeViewer with JDK 11 (and Maven).\r\n\r\n```\r\npietzsch@mycroft:~/workspace/bigdataviewer/bigvolumeviewer-core (master)$ mvn clean install                                                                                                           # 1 [15:22:38]\r\n[INFO] Scanning for projects...\r\n[INFO]\r\n[INFO] ----------------------\u003c sc.fiji:bigvolumeviewer \u003e-----------------------\r\n[INFO] Building BigVolumeViewer 0.3.2-SNAPSHOT\r\n[INFO] --------------------------------[ jar ]---------------------------------\r\n...\r\n[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ bigvolumeviewer ---\r\n[INFO] Compiling 103 source files to /Users/pietzsch/workspace/bigdataviewer/bigvolumeviewer-core/target/classes\r\n[INFO] /Users/pietzsch/workspace/bigdataviewer/bigvolumeviewer-core/src/main/java/bvv/vistools/BvvFunctions.java: Some input files use or override a deprecated API.\r\n[INFO] /Users/pietzsch/workspace/bigdataviewer/bigvolumeviewer-core/src/main/java/bvv/vistools/BvvFunctions.java: Recompile with -Xlint:deprecation for details.\r\n[INFO] -------------------------------------------------------------\r\n[ERROR] COMPILATION ERROR :\r\n[INFO] -------------------------------------------------------------\r\n[ERROR] /Users/pietzsch/workspace/bigdataviewer/bigvolumeviewer-core/src/main/java/bvv/core/blocks/ByteUtils.java:[36,16] package sun.misc does not exist\r\n[ERROR] /Users/pietzsch/workspace/bigdataviewer/bigvolumeviewer-core/src/main/java/bvv/core/blocks/ByteUtils.java:[41,30] cannot find symbol\r\n  symbol:   class Unsafe\r\n  location: class bvv.core.blocks.ByteUtils\r\n[INFO] 2 errors\r\n[INFO] -------------------------------------------------------------\r\n...\r\n```\r\n\r\nThis can be traced back to the `maven-compiler-plugin` configuring `javac` with `--release 8`.\r\n\r\nThe problem is that `--release 8` works slightly different that the old-style `-source 1.8 -target 1.8`.\r\nSee https://bugs.openjdk.org/browse/JDK-8214165, https://bugs.openjdk.org/browse/JDK-8206937, https://mail.openjdk.org/pipermail/compiler-dev/2018-January/011583.html.\r\nThe spec for `--release N` is to provide access to the public documented API for `JDK N`. The `sun.misc` package is not public documented API.\r\n\r\nIronically, if we were targeting Java 11, there would be no problem. `--release 11` would work, because there is the `jdk.unsupported` module ...\r\n\r\nAnyway... I think this can be traced to\r\nhttps://github.com/scijava/pom-scijava-base/blob/8920b4fd8a74997dc245b7ce712e63b3a97dabd5/pom.xml#L2107-L2125\r\nwhere the `\u003cmaven.compiler.release\u003e` property is set.\r\n\r\nThe only way I found to fix that in BigVolumeViewer's pom.xml is https://github.com/bigdataviewer/bigvolumeviewer-core/commit/ffaf291987da4ea3e4ca9796a700b43c5209c8be\r\nhttps://github.com/bigdataviewer/bigvolumeviewer-core/blob/ffaf291987da4ea3e4ca9796a700b43c5209c8be/pom.xml#L83-L95\r\n\r\nIt would be nicer to address this higher up, but I don't know how pom-scijava-base should be changed exactly, and what side effects would be.\r\n","author":{"url":"https://github.com/tpietzsch","@type":"Person","name":"tpietzsch"},"datePublished":"2023-08-23T14:01:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/34/pom-scijava-base/issues/34"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:eb8749a2-31a4-92d8-1144-8596dacdf6f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9646:348DF0:3371DC5:457E87A:69708D5A
html-safe-nonce35efdef36e8292b1805b13e8906cce1f39cd49b1fb388096bad6a7f215e5c8fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjQ2OjM0OERGMDozMzcxREM1OjQ1N0U4N0E6Njk3MDhENUEiLCJ2aXNpdG9yX2lkIjoiODE2NTk0NjMxODYzOTg5Mzg1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca86d60e15a2ef4d9deaac55c34bdf0814d39ca7b7f304dcc0ea36a105b7de1ef
hovercard-subject-tagissue:1863403772
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/pom-scijava-base/34/issue_layout
twitter:imagehttps://opengraph.githubassets.com/74f590e7a2d9bd6179f0c4b815d4251fa942cad4db04912a88ca1f008115b80e/scijava/pom-scijava-base/issues/34
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/74f590e7a2d9bd6179f0c4b815d4251fa942cad4db04912a88ca1f008115b80e/scijava/pom-scijava-base/issues/34
og:image:altI ran into a problem with building BigVolumeViewer with JDK 11 (and Maven). pietzsch@mycroft:~/workspace/bigdataviewer/bigvolumeviewer-core (master)$ mvn clean install # 1 [15:22:38] [INFO] Scannin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametpietzsch
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/scijava/pom-scijava-base git https://github.com/scijava/pom-scijava-base.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id72131582
octolytics-dimension-repository_nwoscijava/pom-scijava-base
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id72131582
octolytics-dimension-repository_network_root_nwoscijava/pom-scijava-base
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d6181066430cc06553c8396ca201e194ae33cb9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fpom-scijava-base%2Fissues%2F34
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fpom-scijava-base%2Fissues%2F34
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fpom-scijava-base
Reloadhttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34
Reloadhttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34
Reloadhttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34
scijava https://patch-diff.githubusercontent.com/scijava
pom-scijava-basehttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fpom-scijava-base
Fork 4 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fpom-scijava-base
Star 3 https://patch-diff.githubusercontent.com/login?return_to=%2Fscijava%2Fpom-scijava-base
Code https://patch-diff.githubusercontent.com/scijava/pom-scijava-base
Issues 4 https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues
Pull requests 0 https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/pulls
Actions https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/actions
Projects 0 https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/security
Please reload this pagehttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34
Insights https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/pulse
Code https://patch-diff.githubusercontent.com/scijava/pom-scijava-base
Issues https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues
Pull requests https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/pulls
Actions https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/actions
Projects https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/projects
Security https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/security
Insights https://patch-diff.githubusercontent.com/scijava/pom-scijava-base/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/pom-scijava-base/issues/34
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scijava/pom-scijava-base/issues/34
Using --release compiler option vs -source and -targethttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/issues/34#top
https://github.com/tpietzsch
https://github.com/tpietzsch
tpietzschhttps://github.com/tpietzsch
on Aug 23, 2023https://github.com/scijava/pom-scijava-base/issues/34#issue-1863403772
https://bugs.openjdk.org/browse/JDK-8214165https://bugs.openjdk.org/browse/JDK-8214165
https://bugs.openjdk.org/browse/JDK-8206937https://bugs.openjdk.org/browse/JDK-8206937
https://mail.openjdk.org/pipermail/compiler-dev/2018-January/011583.htmlhttps://mail.openjdk.org/pipermail/compiler-dev/2018-January/011583.html
pom-scijava-base/pom.xmlhttps://github.com/scijava/pom-scijava-base/blob/8920b4fd8a74997dc245b7ce712e63b3a97dabd5/pom.xml#L2107-L2125
8920b4fhttps://patch-diff.githubusercontent.com/scijava/pom-scijava-base/commit/8920b4fd8a74997dc245b7ce712e63b3a97dabd5
bigdataviewer/bigvolumeviewer-core@ffaf291https://github.com/bigdataviewer/bigvolumeviewer-core/commit/ffaf291987da4ea3e4ca9796a700b43c5209c8be
https://github.com/bigdataviewer/bigvolumeviewer-core/blob/ffaf291987da4ea3e4ca9796a700b43c5209c8be/pom.xml#L83-L95https://github.com/bigdataviewer/bigvolumeviewer-core/blob/ffaf291987da4ea3e4ca9796a700b43c5209c8be/pom.xml#L83-L95
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.