Closed dpolivaev closed 9 months ago
I know that the example seems to make no sense because the use of the += operator is not correct, we need to use +. However, I found the error analyzing our code base, and it took me a while to understand what goes on here.
Resolved in https://github.com/TNG/ArchUnit/pull/1203
Add the following class as file
ClassWithBuilder.java
to folderarchunit/src/test/java/com/tngtech/archunit/core/importer/testexamples/
and see how ClassFileImporterTest#imports_urls_of_folders fails, the test result containing exception trace is attached.
The decompiled version of the class contains lines
and this synthetic method call lets the loader fail.
ClassWithBuilder.java.zip TEST-com.tngtech.archunit.core.importer.ClassFileImporterTest.xml.zip