Skip to content

Conversation

@reckart
Copy link
Member

@reckart reckart commented Dec 20, 2024

What's in the PR

  • Clean up ClassLoaderUtils a bit
  • Added missing since version to deprecation
  • Consolidate redundant code inside RelativePathResolver_impl
  • Allow UimaBndPlugin to dive into transitive imports and process them as well
  • Make transitive import resoving optional
  • Added more debug logging

How to test manually

  • See issue description

Automatic testing

  • PR adds/updates unit tests

Documentation

  • PR adds/updates documentation

Organizational

  • PR adds/updates dependencies.
    Only dependencies under approved licenses are allowed. LICENSE and NOTICE files in the respective modules where dependencies have been added as well as in the project root have been updated.

…own too much

- Clean up ClassLoaderUtils a bit
- Added missing since version to deprecation
- Consolidate redundant code inside RelativePathResolver_impl
…own too much

- Allow UimaBndPlugin to dive into transitive imports and process them as well
…own too much

- Make transitive import resoving optional
- Added more debug logging
…em-imports-through-SPIs-slows-things-down-too-much

* release/3.6.x:
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
@reckart reckart added this to the 3.6.1 milestone Dec 20, 2024
@reckart reckart self-assigned this Dec 20, 2024
…em-imports-through-SPIs-slows-things-down-too-much

* release/3.6.x:
  Issue #431: Issue using SPI-enabled type systems embedded into PEARs
…into refactoring/430-Resolving-type-system-imports-through-SPIs-slows-things-down-too-much

* refactoring/435-Improve-performance-of-ImportResolver:
  Issue #435: Improve performance of ImportResolver
  Issue #435: Improve performance of ImportResolver
  Issue #435: Improve performance of ImportResolver
  Issue #435: Improve performance of ImportResolver
  Issue #435: Improve performance of ImportResolver
  Issue #435: Improve performance of ImportResolver

% Conflicts:
%	uimaj-core/src/main/java/org/apache/uima/resource/impl/RelativePathResolver_impl.java
…em-imports-through-SPIs-slows-things-down-too-much

* release/3.6.x:
  Issue #435: Improve performance of ImportResolver
@reckart reckart added the ⭐️ Enhancement Improvement or new feature for users label Sep 19, 2025
@reckart reckart requested a review from Copilot September 19, 2025 10:10
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 addresses performance issues with type system imports by optimizing import resolution and adding configurable transitive import processing. The changes focus on reducing redundant processing and providing better control over import depth.

Key changes:

  • Enhanced UimaBndPlugin to support transitive import processing with optional depth control
  • Consolidated redundant ClassLoader resolution logic in ClassLoaderUtils
  • Added proper deprecation annotations with version information

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ResourceManager_impl.java Added missing deprecation version annotation
RelativePathResolver.java Added deprecation version and updated implementation
RelativePathResolver_impl.java Moved ClassLoader assignment and removed redundant javadoc
ClassLoaderUtils.java Consolidated duplicate ClassLoader resolution logic
GenerateDescriptorsMojo.java Minor code modernization using var
UimaBndPlugin.java Major enhancement adding transitive import support and configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@reckart reckart marked this pull request as ready for review September 22, 2025 12:06
@reckart reckart merged commit 68561e3 into release/3.6.x Sep 22, 2025
3 of 5 checks passed
@reckart reckart deleted the refactoring/430-Resolving-type-system-imports-through-SPIs-slows-things-down-too-much branch September 22, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⭐️ Enhancement Improvement or new feature for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant