Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22648

(7.4.z) SystemPropertiesParsingTest fails on SE 17

XMLWordPrintable

      https://ci.wildfly.org/viewLog.html?buildId=277589&

      ======= Failed test run #1 ==========
      java.lang.NoSuchFieldException: modifiers
      	at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
      	at org.jboss.as.server.parsing.SystemPropertiesParsingTest.before(SystemPropertiesParsingTest.java:56)
      ...
      ======= Failed test run #2 ==========
      java.lang.NoSuchFieldException: modifiers
      	at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
      	at org.jboss.as.server.parsing.SystemPropertiesParsingTest.after(SystemPropertiesParsingTest.java:67)
      

      Looks like this is specifically not meant to work:

      https://stackoverflow.com/questions/56039341/get-declared-fields-of-java-lang-reflect-fields-in-jdk12

      I'm going to just @Ignore this test. This is a test of WFCORE-4736 which amounts to a simple change to a log message to not log the system property value. Now the message clearly does not; one just needs to read it in the code to confirm that. The test is not actually checking for regressions to the fix; it's just checking the log message is invoked, which AFAICT was never in question. Reworking this text to deal with the above problem is not worth further effort.

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: