]> source.dussan.org Git - aspectj.git/commit
Improved fix for #285
authorKimmingLau <294001791@qq.com>
Wed, 28 Feb 2024 03:50:59 +0000 (11:50 +0800)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 4 Mar 2024 09:15:31 +0000 (10:15 +0100)
commit1f1d429752fd3ace6bc62f1aabea83e56e5818e4
tree350dd9e964bd8f9c4eb74a38a4ae423ce9a00c07
parent1cdf71119c5e3434772f3b51705b7bb8ba5980fe
Improved fix for #285

1. Write SAME_BYTES to cacheMap when woven bytes are null
2. Fix TODO in SimpleCache::getAndInitialize, using Optional to help
   indicate cache hit for unwoven class
3. Improve test coverage (cache miss, cache hit for unwoven class)

Relates to #285.

Co-authored-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Signed-off-by: KimmingLau <294001791@qq.com>
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
loadtime/src/main/java/org/aspectj/weaver/loadtime/Aj.java
weaver/src/main/java/org/aspectj/weaver/tools/cache/SimpleCache.java
weaver/src/test/java/org/aspectj/weaver/tools/cache/SimpleClassCacheTest.java