Repository navigation
[OPENJPA-3012] some comments are addressed - #211
Conversation
The resolution paths are reachable without constructing an ObjectStreamClass: serializing int.class yields a descriptor whose name is "int", which Class.forName rejects, so it is resolved only by the fallback to the stream's own resolveClass; that test fails before this change and passes after it. A class loader that redefines the classes of the test instead of delegating gives a class reachable from one loader only, which pins that the thread context loader is consulted and takes precedence. Array classes and an array instance cover the descriptors that name a type rather than a class.
|
@solomax I pushed a test to the branch: No
Four tests, all green on the branch; with One small thing on the javadoc in 374edfa: the comment ends with "A comment would prevent a later simplification", which was my phrasing in the review rather than something to keep in the source. Everything above it describes the constraint correctly. |
|
Thanks! :))) |
PR was merged too fast :)))
I have addressed some comments
But I have difficulties with tests :(
class resolving is happening through
ObjectStreamClasswhich I have no idea how to construct :(ObjectStreamClass.lookup(Class)will make it available to local class loaderI would appreciate help here :)