Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Addresses Java 9 incompatibility in AgentManifestLibs where List.of() was used despite project targeting Java 8.

Changes

  • Replace List.of() calls with Collections.emptyList() in AgentManifestLibs.resolveFromManifest()
  • Add Collections import
// Before (Java 9+)
return new ResolvedLibs(List.of(), List.of());

// After (Java 8 compatible)
return new ResolvedLibs(Collections.emptyList(), Collections.emptyList());

This ensures the agent compiles and runs on Java 8 as specified in project build configuration.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copy link

@reviewabot reviewabot bot left a comment

Choose a reason for hiding this comment

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

Sure, I'd be happy to review the pull request. Please provide the code changes that are part of the PR.

… compatibility

Co-authored-by: jbachorik <738413+jbachorik@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on provided-style extensions and manifest-libs PR fix(agent): replace List.of() with Collections.emptyList() for Java 8 compatibility Jan 13, 2026
Copilot AI requested a review from jbachorik January 13, 2026 16:46
@jbachorik jbachorik marked this pull request as ready for review January 14, 2026 08:58
@jbachorik jbachorik merged commit a62169b into jb/configurations Jan 14, 2026
@jbachorik jbachorik deleted the copilot/sub-pr-791 branch January 14, 2026 08:59
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