-
-
Couldn't load subscription status.
- Fork 1.7k
Feat(SystemClock): Added PreciseClock implementation to the system clock class, for the benefit of Java 8 users. #3217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The build failure is due to the Please, rebase. |
d621b82 to
cf1ddbf
Compare
|
Code changes look good to me. Can you add a changelog entry for this? You can copy |
|
Hi @jvz , @ppkarwasz There we go did it 📦 |
cf1ddbf to
b147ca3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the Java 8 and Java 9+ versions of the SystemClock class are identical now, can you remove the Java 9+ version (in log4j-core-java9). The log4j-core-java9 package has a lot of dummy classes, whose purpose is to make the module compilable, they are not packaged. Can you remove those dummy classes too?
log4j-core/src/main/java/org/apache/logging/log4j/core/util/SystemClock.java
Outdated
Show resolved
Hide resolved
log4j-core/src/main/java/org/apache/logging/log4j/core/util/SystemClock.java
Outdated
Show resolved
Hide resolved
|
Great opportunity for me to learn here:
|
To make it "compilable". The These are the classes that I call "dummy" classes.
We use the Maven Assembly plugin to package the classes in
They should have a comment near the top that says that they are "dummy" or something equivalent. |
|
Thanks @ppkarwasz , for the answers, let me make a PR soon :) finally got back from vacation :) |
…ock class, for the benefit of Java 8 users.
b147ca3 to
31f4df7
Compare
|
Hi @ppkarwas, finally got time to upload a revision, please check whenever you get time! 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Straight forward change to override the behavior of System Clock, to implement the Precise Clock interface, for the benefit of Java 8 users. The PR is for issue #3198
Checklist
2.xbranch if you are targeting Log4j 2; usemainotherwise./mvnw verifysucceeds (if it fails due to code formatting issues reported by Spotless, simply run./mvnw spotless:applyand retry)src/changelog/.2.x.xdirectory