Skip to content

Commit

Permalink
[add] document warning removal work-around #46
Browse files Browse the repository at this point in the history
  • Loading branch information
zolyfarkas committed Jun 2, 2020
1 parent dcccde4 commit 18b6043
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ please define java11.home property with the home of JDK 11 in your settings.xml

See pom.xml for other profiles for openjdk, zolyfarkas/avro fork validations.


When running on java 9 or higher you will receive warnings like:

```
WARNING: Illegal reflective access by ...
```

you can remove these warnings by adding to you java command line:


```
--add-opens=java.base/java.lang=ALL-UNNAMED
```

15 changes: 15 additions & 0 deletions spf4j-slf4j-test/src/site/markdown/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ with tons of debug info dumped to output all the time. But making it available w
NOTE: since logging is JVM global, you should run your unit tests single threaded to be able to easily reason about your logging,
and more accurate log message attribution.

### JDK 9+ notes

When running on java 9 or higher you will receive warnings like:

```
WARNING: Illegal reflective access by ...
```

you can remove these warnings by adding to you java command line:


```
--add-opens=java.logging/java.util.logging=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
```

### Examples:

#### Assert that you expect message to be logged:
Expand Down

0 comments on commit 18b6043

Please sign in to comment.