Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8357561

BootstrapLoggerTest does not work on Ubuntu 24 with LANG de_DE.UTF-8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • core-libs
    • None
    • generic
    • linux


      On a "german" Ubuntu 24 (LANG="de_DE.UTF-8") test
      java/lang/System/LoggerFinder/internal/BootstrapLogger/BootstrapLoggerTest fails with


      ----------System.out:(0/0)----------
      ----------System.err:(29/1382)----------
      Testing: RUN_AND_WAIT
      VM Booted: false
      LogManager initialized: false
      VM Booted: true
      LogManager initialized: false
      Mai 22, 2025 10:01:37 AM jdk.internal.logger.BootstrapLogger$LogEvent log
      INFO: Early message #1
      Mai 22, 2025 10:01:38 AM BootstrapLoggerTest main
      INFO: LOG#4: VM now booted: true
      Mai 22, 2025 10:01:38 AM jdk.internal.logger.BootstrapLogger$LogEvent log
      WARNING: Early message #2
      Mai 22, 2025 10:01:38 AM jdk.internal.logger.BootstrapLogger$LogEvent log
      INFO: Early message #3
      Found: Thread[#26,BootstrapMessageLoggerTask-InnocuousThread-1,5,InnocuousThreadGroup]
      VM Booted: true
      LogManager initialized: false
      Mai 22, 2025 10:01:38 AM BootstrapLoggerTest main
      FEIN: hi now!
      java.lang.RuntimeException: System.err does not contain: FINE: hi now!
      at BootstrapLoggerTest.main(BootstrapLoggerTest.java:231)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1447)

      Looks like the test does not work correctly with some languages, it does not take into account that we get a german localized message ("FEIN") instead of FINE.

            dfuchs Daniel Fuchs
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: