XMLWordPrintableJSON

Details

    Description

      ASM 9.5 (which has support for java 21[1]) came only with ArchUnit 1.1.0 [2]

      With current ArchUnit(1.0.0) in case of jdk21 it fails

      mvn clean install -DskipTests -Dfast -Pjava21-target
      mvn verify -pl flink-architecture-tests/flink-architecture-tests-production/ -Darchunit.freeze.store.default.allowStoreUpdate=false
      

      like

      Nov 26 16:07:42 16:07:42.024 [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.742 s <<< FAILURE! - in org.apache.flink.architecture.rules.ITCaseRules
      Nov 26 16:07:42 16:07:42.025 [ERROR] ITCaseRules.ITCASE_USE_MINICLUSTER  Time elapsed: 0.005 s  <<< ERROR!
      Nov 26 16:07:42 com.tngtech.archunit.library.freeze.StoreUpdateFailedException: Updating frozen violations is disabled (enable by configuration freeze.store.default.allowStoreUpdate=true)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.ViolationStoreFactory$TextFileBasedViolationStore.save(ViolationStoreFactory.java:125)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.FreezingArchRule$ViolationStoreLineBreakAdapter.save(FreezingArchRule.java:277)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.FreezingArchRule.removeObsoleteViolationsFromStore(FreezingArchRule.java:154)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.FreezingArchRule.removeObsoleteViolationsFromStoreAndReturnNewViolations(FreezingArchRule.java:146)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.FreezingArchRule.evaluate(FreezingArchRule.java:127)
      Nov 26 16:07:42 	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:84)
      Nov 26 16:07:42 	at com.tngtech.archunit.library.freeze.FreezingArchRule.check(FreezingArchRule.java:97)
      
      

      [1] https://asm.ow2.io/versions.html#9.5
      [2] https://github.com/TNG/ArchUnit/pull/1098

      Attachments

        Issue Links

          Activity

            People

              Sergey Nuyanzin Sergey Nuyanzin
              Sergey Nuyanzin Sergey Nuyanzin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: