Skip to content

Add dependency required in test-time#267

Merged
pzygielo merged 1 commit intoeclipse-ee4j:masterfrom
pzygielo:ttgmbal
Feb 10, 2026
Merged

Add dependency required in test-time#267
pzygielo merged 1 commit intoeclipse-ee4j:masterfrom
pzygielo:ttgmbal

Conversation

@pzygielo
Copy link
Contributor

No description provided.

@pzygielo pzygielo marked this pull request as ready for review January 22, 2026 13:24
@pzygielo
Copy link
Contributor Author

May I ask for review, please?

@dmatej
Copy link
Contributor

dmatej commented Feb 10, 2026

Wait a second! This is not a solution, we hit that on Metro today (and few weeks ago), I did exactly this, but @lukasj pointed out that the impl should not be required in some cases (when JMX is disabled, so we don't need any impl, just the NOOP).

I will fix it tomorrow in gmbal:

  • The IllegalStateException will be thrown from those two methods, when we did not find any service in the static block.
  • The NOOP will remain unchanged. However, maybe the class could be nonfinal and public, so it could be extended in custom implementations.

@dmatej
Copy link
Contributor

dmatej commented Feb 10, 2026

Btw, is it passing without that?
EDIT: CI doesn't run tests!

@pzygielo
Copy link
Contributor Author

Btw, is it passing without that?

No.

That's why I ask for this to be merged in. If there is something to be fixed and then included here - then this might go. But now it's needed.

@pzygielo
Copy link
Contributor Author

CI doesn't run tests!

#265 (comment):

Perhaps it would be good to execute at least some tests (from modified module) during CI build.

@dmatej
Copy link
Contributor

dmatej commented Feb 10, 2026

How do you run tests? master passed when I ran just mvn clean install
Aha ... mvn clean install -Pall-tests
Hmm:

  1. SecurityManager on JDK25 fails all tests
  2. Despite all tests do fail, the maven build was successful.

@pzygielo
Copy link
Contributor Author

1. SecurityManager on JDK25 fails all tests

@dmatej
Copy link
Contributor

dmatej commented Feb 10, 2026

Sure, but that is nogo with JDK25.
However I will approve this, because I see this in the project used:

    @OrbLifeCycle
    public void createORBManagedObjectManager() {
        if (rootParentObjectName == null) {
            mom = ManagedObjectManagerFactory.createStandalone( "com.sun.corba" ) ;
        } else {
            mom = ManagedObjectManagerFactory.createFederated( rootParentObjectName ) ;
        }

So I guess it is simply mandatory to have some implementation.

@pzygielo pzygielo merged commit dcbc86e into eclipse-ee4j:master Feb 10, 2026
2 checks passed
@pzygielo pzygielo deleted the ttgmbal branch February 10, 2026 23:53
@pzygielo
Copy link
Contributor Author

Sure, but that is nogo with JDK25.

Right, it produces

A command line option has attempted to allow or enable the Security Manager

But the added dependency is not a reason for that. 😄

And I used this to run single test:

mvn \
   -f functional-tests   \
   antrun:run@run-tests  \
   -Dtest.args="-test rmic.StaticStringsHashTest -verbose"

@pzygielo
Copy link
Contributor Author

I see locally I still have at least one change waiting to be included for tests to go - to set property

    <jvmarg value="-Dorg.glassfish.gmbal.no.multipleUpperBoundsException=true"/>

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