Re: Can't build ApacheDS with Java 8, because of LDAP API, was Re: Can't build ApacheDS with Java 8, because of MINA

2022-08-09 Thread Emmanuel Lécharny
Side note: in order to be able to generate the LDAP API site, the maven-site-plugin version must be changed to 3.12.0 instead of 4.0.0-M5. I'll change that in the next vesion. On 10/08/2022 07:46, Emmanuel Lécharny wrote: I confirm. If I add the missing profile in LDAP API pom.xml, Apache DS b

Can't build ApacheDS with Java 8, because of LDAP API, was Re: Can't build ApacheDS with Java 8, because of MINA

2022-08-09 Thread Emmanuel Lécharny
I confirm. If I add the missing profile in LDAP API pom.xml, Apache DS builds fine with Java 8. I will create a new LXDAP API release. On 10/08/2022 07:20, Emmanuel Lécharny wrote: Correction, this is not a MINA issue, as we built it with the proper tag:       java-8-compilation  

Re: Can't build ApacheDS with Java 8, because of MINA

2022-08-09 Thread Emmanuel Lécharny
Correction, this is not a MINA issue, as we built it with the proper tag: java-8-compilation [9,) 8 ... We don't have such a profile in the LDAP API, and we need to get it fixed... On 10/08/2022 07:11, Emmanuel Lécharny wrote: Ok, I thin

Re: Can't build ApacheDS with Java 8, because of MINA

2022-08-09 Thread Emmanuel Lécharny
Ok, I think I found the reason. There were some changes made in the ByteBuffer class in Java 9 (and forward) which leads to some error in Apache DS code. In MINA, I get an exception like: java.lang.NoSuchMethodError: java.nio.ByteBuffer.mark()Ljava/nio/ByteBuffer; which is badly handled (bas

Can't build ApacheDS with Java 8

2022-08-09 Thread Emmanuel Lécharny
Hi, since I have bumped up the LDAP API version to 2.1.1, the tests are blocking on DirectoryServiceAnnotationTest when ran with Java 8. It's passing with Java 11. Here is the thread dump I get (see further down), it seems to block on surfire trying to read some stream. The surefire plugin i