Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ public BinaryArray(BinaryContext ctx, int compTypeId, @Nullable String compClsNa
@Override public <T> T deserialize(ClassLoader ldr) throws BinaryObjectException {
ClassLoader resolveLdr = ldr == null ? ctx.classLoader() : ldr;

/*
if (ldr != null)
Marshallers.USE_CACHE.set(Boolean.FALSE);
*/

try {
Class<?> compType = BinaryUtils.resolveClass(ctx, compTypeId, compClsName, resolveLdr, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ public BinaryEnumObjectImpl(BinaryContext ctx, byte[] arr) {
@Override public <T> T deserialize(@Nullable ClassLoader ldr) throws BinaryObjectException {
ClassLoader resolveLdr = ldr == null ? ctx.classLoader() : ldr;

/*
if (ldr != null)
Marshallers.USE_CACHE.set(Boolean.FALSE);
*/

try {
Class cls = BinaryUtils.resolveClass(ctx, typeId, clsName, resolveLdr, false);
Expand All @@ -193,7 +195,7 @@ public BinaryEnumObjectImpl(BinaryContext ctx, byte[] arr) {
private <T> T uncachedValue(Class<?> cls) throws BinaryObjectException {
assert cls != null;

assert !Marshallers.USE_CACHE.get();
//assert !Marshallers.USE_CACHE.get();

if (ord >= 0) {
Object[] vals = cls.getEnumConstants();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ else if (fieldOffsetLen == BinaryUtils.OFFSET_2)
if (ldr == null)
return deserialize();

/*
Marshallers.USE_CACHE.set(Boolean.FALSE);
*/

try {
return (T)reader(null, ldr, true).deserialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ else if (fieldOffLen == BinaryUtils.OFFSET_2)
if (ldr == null)
return deserialize();

/*
Marshallers.USE_CACHE.set(Boolean.FALSE);
*/

try {
return (T)reader(null, ldr, true).deserialize();
Expand Down
Loading