Skip to content

Make imported applet packages optional#283

Draft
OndroMih wants to merge 1 commit intoeclipse-ee4j:masterfrom
OmniFish-EE:ondromih-2026-04-java-26-applets-optional
Draft

Make imported applet packages optional#283
OndroMih wants to merge 1 commit intoeclipse-ee4j:masterfrom
OmniFish-EE:ondromih-2026-04-java-26-applets-optional

Conversation

@OndroMih
Copy link
Copy Markdown

Applets were removed from Java 26, they cannot be imported if running on Java 26 or newer. Making them optional will allow using the functionality on Java 26 that doesn't depend on applets.

Applets were removed from Java 26, they cannot be imported if running on Java 26 or newer. Making them optional will allow using the functionality on Java 26 that doesn't depend on applets.
@pzygielo
Copy link
Copy Markdown
Contributor

@dmatej
Copy link
Copy Markdown
Contributor

dmatej commented Apr 11, 2026

Did also tests pass? That would be an awesome signal that it could be possible to remove it completely.

@dmatej dmatej added this to the 5.1.0 milestone Apr 11, 2026
@OndroMih
Copy link
Copy Markdown
Author

I didn’t run tests. I can try to modify a Jenkins job to build orb and build GlassFish against a snapshot version and then run tests. I’ll try it.

@OndroMih
Copy link
Copy Markdown
Author

This is not enough to make GlassFish work on Java 26. GlassFish uses several Orb classes that refer to applets and fail to load. At least the tests fail because easymock wants to load all methods when it creates the mocks, see: https://ci.eclipse.org/glassfish/job/daily_builds/job/GlassFish-Java26/org.glassfish.main.common$glassfish-naming/18/testReport/junit/com.sun.enterprise.naming.impl/GlassfishNamingManagerImplTest/initializeRemoteNamingSupport/

@OndroMih OndroMih marked this pull request as draft April 13, 2026 15:00
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

Successfully merging this pull request may close these issues.

3 participants