Skip to content

Conversation

@pepone
Copy link
Member

@pepone pepone commented Sep 26, 2025

Fixes a build failure in Ice/customError related to initialize updates.

Copy link
Member Author

Choose a reason for hiding this comment

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

Executable bit was missing.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a build failure in the Java Ice/customError demo by updating the initialization pattern to use the newer Ice framework API. The key change involves properly setting up properties and adjusting the communicator initialization call.

Key changes:

  • Added proper Properties import and initialization
  • Updated the Util.initialize() call signature to use the newer API pattern

// Java applications that unmarshal classes or exceptions, when the classes/exceptions or their enclosing
// module(s) are remapped using java:identifier, like in this demo.
var initData = new InitializationData();
initData.properties = new Properties(args);
Copy link
Member

Choose a reason for hiding this comment

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

I would move the properties assignment after the sliceLoader assignment, because of the comment above.

@pepone pepone merged commit a088523 into zeroc-ice:main Sep 26, 2025
15 of 16 checks passed
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.

2 participants