Skip to content

Conversation

nlisker
Copy link
Collaborator

@nlisker nlisker commented Sep 3, 2025

Removed the the directories under "build" from the sources list in Eclipse since they can be platform-specific or just irrelevant for almost all cases. Contributors can add them manually as needed.

Another option is to mark them as optional.

/reviewers 2


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8366842: Update the classpath file of the graphics module (Task - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1884/head:pull/1884
$ git checkout pull/1884

Update a local copy of the PR:
$ git checkout pull/1884
$ git pull https://git.openjdk.org/jfx.git pull/1884/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1884

View PR using the GUI difftool:
$ git pr show -t 1884

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1884.diff

Using Webrev

Link to Webrev Comment

@nlisker nlisker marked this pull request as ready for review September 3, 2025 22:15
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 3, 2025

👋 Welcome back nlisker! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 3, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Ready for review label Sep 3, 2025
@openjdk
Copy link

openjdk bot commented Sep 3, 2025

@nlisker
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@nlisker
Copy link
Collaborator Author

nlisker commented Sep 3, 2025

@andy-goryachev-oracle @hjohn Please review.

@mlbridge
Copy link

mlbridge bot commented Sep 3, 2025

Webrevs

@andy-goryachev-oracle
Copy link
Contributor

With this change I cannot run both jfx and standalone monkey testers:

JRE Oracle Corporation/24 is not supported, advanced source lookup disabled.
 Eclipse debugger will use less precise source lookup implementation for this debug session, but everything else will continue to work otherwise.
Upgrading Eclipse to the latest version will likely make this warning go away.RenderJob.run: internal exception
java.lang.ExceptionInInitializerError
	at javafx.graphics/com.sun.prism.mtl.MTLResourceFactory.<init>(MTLResourceFactory.java:61)
	at javafx.graphics/com.sun.prism.mtl.MTLPipeline.getResourceFactory(MTLPipeline.java:87)
	at javafx.graphics/com.sun.prism.mtl.MTLPipeline.getDefaultResourceFactory(MTLPipeline.java:78)
	at javafx.graphics/com.sun.prism.GraphicsPipeline.getDefaultResourceFactory(GraphicsPipeline.java:155)
	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer.lambda$1(QuantumRenderer.java:155)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:369)
	at javafx.graphics/com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
	at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:122)
	at java.base/java.lang.Thread.run(Thread.java:1447)
Caused by: java.lang.RuntimeException: java.io.IOException: Stream closed
	at javafx.graphics/com.sun.prism.mtl.MTLContext.<clinit>(MTLContext.java:109)
	... 12 more
Caused by: java.io.IOException: Stream closed
	at java.base/java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:170)
	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:328)
	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:388)
	at java.base/java.io.InputStream.readNBytes(InputStream.java:411)
	at java.base/java.io.InputStream.readAllBytes(InputStream.java:348)
	at javafx.graphics/com.sun.prism.mtl.MTLContext.<clinit>(MTLContext.java:104)
	... 12 more

@nlisker
Copy link
Collaborator Author

nlisker commented Sep 4, 2025

Didn't see this in Metal. In any case, I reverted the removals and made the dependencies optional to avoid compilation errors on OS's that don't generate the required sources. This is much safer.

Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much safer and cleaner, thank you!

BTW, how could one change these option via UI?

@nlisker
Copy link
Collaborator Author

nlisker commented Sep 4, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfr Ready for review
Development

Successfully merging this pull request may close these issues.

2 participants