RFR: 8256808: com/sun/jdi/CatchAllTest.java failed with "NullPointerException: Cannot invoke "lib.jdb.Jdb.log(String)" because "this.jdb" is null"

Alex Menkov amenkov at openjdk.java.net
Wed Nov 25 21:41:02 UTC 2020


JdbTest can get exception before jdb field is initialized.
As Jdb logging does not depend on the instance, made Jdb.log method static

-------------

Commit messages:
 - Fixed copyright years
 - Fixed test initialization logging

Changes: https://git.openjdk.java.net/jdk/pull/1443/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1443&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8256808
  Stats: 6 lines in 2 files changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1443.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1443/head:pull/1443

PR: https://git.openjdk.java.net/jdk/pull/1443


More information about the serviceability-dev mailing list