-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add support for com.github.ben-manes.caffeine:caffeine:2.9.3
#388
Conversation
455d961
to
2c46b03
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.
- An useless JSON was removed at linghengqian/graalvm-trace-metadata-smoketest@f1ec6a2 . However, if we remove the following JSON entries involving
java.**
, it will cause nativeTest to hang, so it must be retained. I haven't seen room for improvement yet.
{
"condition":{"typeReachable":"com.github.benmanes.caffeine.cache.StripedBuffer"},
"name":"java.lang.Thread",
"fields":[{"name":"threadLocalRandomProbe"}]
}
2c46b03
to
143c4bd
Compare
143c4bd
to
b12db26
Compare
b12db26
to
86c3fae
Compare
I will review this PR in the coming weeks. |
I am a bit concerned about the |
|
86c3fae
to
13ebb50
Compare
|
Thanks for the explanation. An argument might be that this is trivial code that anyone would write like this (using the documentation quoted by you). However, this was ~30 LOC, so this argument legally will be on very thin ice. A judge would maybe see that you copied the file from somewhere, removed the comments, and changed the license. We could not accept a contribution like that.
Ok, thanks. In the remaining code, I see no problem any more. I assume all the remaining tests were written by yourself? |
|
It is fine if you already contributed the code somewhere else; if it is YOUR code, that YOU wrote, you can also contribute it here. That's what I assume is the case here. If you can confirm that, I think this is resolved. @dnestoro will still check the functionality of the PR as usual Thanks for improving this. |
metadata/com.github.ben-manes.caffeine/caffeine/2.9.3/reflect-config.json
Show resolved
Hide resolved
...ffeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/CaffeineTest.java
Show resolved
Hide resolved
...ffeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/CaffeineTest.java
Show resolved
Hide resolved
...ffeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/EvictionTest.java
Show resolved
Hide resolved
...eine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/PopulationTest.java
Outdated
Show resolved
Hide resolved
...eine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/PopulationTest.java
Show resolved
Hide resolved
...affeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/RemovalTest.java
Show resolved
Hide resolved
...affeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/RemovalTest.java
Outdated
Show resolved
Hide resolved
@linghengqian in general the PR looks fine. For future PRs make sure that you only ever add the minimal amount tests needed to verify the metadata your PR adds. The use of tests in the metadata repository is not to cover all possible features of the library but to exercise the code paths in the library that wouldn't work without the metadata your PR adds. |
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, but please address all issues/questions raised by @dnestoro before we can merge.
7a956b2
to
700c88a
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.
- All reviews have been processed.
...ffeine/caffeine/2.9.3/src/test/java/com_github_ben_manes_caffeine/caffeine/CaffeineTest.java
Outdated
Show resolved
Hide resolved
700c88a
to
84e0a8f
Compare
What does this PR do?
com.github.ben-manes.caffeine:caffeine:2.9.3
#384 .com.github.ben-manes.caffeine:caffeine:2.9.3
.2.9.3
and3.1.2
are quite inconsistent.Code sections where the PR accesses files, network, docker or some external service
(example link to code section)
Null.
Checklist before merging