solenv/gbuild/JavaClassSet.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5056afaf7018a7526ae3aef36cd0e32dabf8e16e
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Wed Jul 9 08:41:32 2025 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Wed Jul 9 11:24:53 2025 +0200

    Fix gb_JunitTest_use_jar_classset
    
    For example, something like `touch ridljar/com/sun/star/uno/Any.java && make
    JunitTest_ridl_remote` (i.e., requiring the classset of libreoffice.jar to 
be
    rebuilt, which JunitTest_ridl_remote depends on) caused javac to fail with
    
    > error: bad value for --patch-module option: 'org.libreoffice.uno='
    
    when building the classset for libreoffice.jar, because its recipe
    (gb_JavaClassSet__command in solenv/gbuild/JavaClassSet.mk) uses per-target
    PACKAGEDIRS, but which is only set in the corresponding solenv/gbuild/Jar.mk
    target.
    
    So make gb_JunitTest_use_jar_classset -> gb_JavaClassSet_use_jar_classet 
depend
    on the jar instead of just the classset, to make sure the classet gets built
    properly as part of building its jar.
    
    Change-Id: I5c46ff40b716ae91bd32d104a516f8eefbe62e21
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187481
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/solenv/gbuild/JavaClassSet.mk b/solenv/gbuild/JavaClassSet.mk
index 1dcc65fd8e8a..c85133d882b9 100644
--- a/solenv/gbuild/JavaClassSet.mk
+++ b/solenv/gbuild/JavaClassSet.mk
@@ -170,8 +170,8 @@ endef
 # $1: token identifying this JavaClassSet
 # $2: token identifying the Jar being used
 define gb_JavaClassSet_use_jar_classset
-$(call gb_JavaClassSet_get_target,$(1)) : $(call 
gb_JavaClassSet_get_target,$(call gb_Jar_get_classsetname,$(2)))
-$(call gb_JavaClassSet_get_target,$(1)) : JARDEPS += $(call 
gb_JavaClassSet_get_target,$(call gb_Jar_get_classsetname,$(2)))
+$(call gb_JavaClassSet_get_target,$(1)) : $(call gb_Jar_get_target,$(2))
+$(call gb_JavaClassSet_get_target,$(1)) : JARDEPS += $(call 
gb_Jar_get_target,$(2))
 $(call gb_JavaClassSet_add_classpath,$(1),$(call 
gb_JavaClassSet_get_classdir,$(call gb_Jar_get_classsetname,$(2))))
 
 endef

Reply via email to