|
[
Permlink
| « Hide
]
Scott Bale added a comment - 16/Sep/08 12:34 PM
similar serialization bug, affecting Exam caching
Last night I found that the writeObject() method of HashMap uses a private non-instrumented entrySet0() method to retrieve entries, rather than the public, Terracotta-instrumented entrySet method.
Today, Tim found this is only true in source code of JDK 1.4 and 1.6 but NOT JDK 1.5! That's not a misprint. I checked with Himadri, and sure enough he was using JDK 1.6. I have been using JDK 1.5, which explains why I never saw this ClassCastException before. Also, the system test I wrote passes (predictably) with JDK 1.5 and fails (predictably) with JDK 1.4. So I think we're on the right track. fixed in trunk (10114, 10118, 10142) and 2.7 branch (10155)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||