GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Load extensions from extra classpath by m-dzianishchyts · Pull Request #88 · dflib/jjava

Conversation

@m-dzianishchyts

@m-dzianishchyts m-dzianishchyts commented Oct 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds extension auto-loading from JJAVA_CLASSPATH at kernel startup by resolving globs and installing extensions after kernel creation.

Fixes #71.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
m-dzianishchyts added 2 commits October 3, 2025 15:09
@m-dzianishchyts
Load extensions from extra classpath
6e4397a
@m-dzianishchyts
Clean up
cf6d051
@andrus

andrus commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Thanks for the PR. A few comments:

  • Need to think of a proper consistent place for extension loading. E.g., loading from the main classpath happens inside JavaKernel constructor, this one happens in the builder (and likely in the wrong one... If someone extends JavaKernelBuilder, they'd lose this functionality). I guess let's keep it where it is, and I will think of it some more
  • We need unit tests demonstrating the original problem (and the fix here). We must keep Improving the test coverage in general. Otherwise making any changes is very risky.
m-dzianishchyts reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@andrus

andrus commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

loading from the main classpath happens inside JavaKernel constructor, this one happens in the builder

Maybe we can even combine the two, and load everything once using a proper ClassLoader with the extra classpath

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@m-dzianishchyts
m-dzianishchyts marked this pull request as draft October 8, 2025 12:03
m-dzianishchyts added 3 commits October 10, 2025 13:49
@m-dzianishchyts
Make JavaKernel constructor require extra classpath
60749cc
@m-dzianishchyts
Add unit tests
03d382e
@m-dzianishchyts
Merge branch 'main' into feat-classpath-extension-loading
e19417a
# Conflicts:
#	jjava-kernel/src/main/java/org/dflib/jjava/kernel/JavaKernel.java
@m-dzianishchyts
m-dzianishchyts marked this pull request as ready for review October 10, 2025 11:14
@andrus
andrus merged commit e19417a into dflib:main Oct 11, 2025
@andrus

andrus commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

The PR is in. I really appreciate the kernel tests that don't require Docker and still allow to play with extensions.

m-dzianishchyts reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Extension loading from classpath

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@m-dzianishchyts @andrus
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.