Skip to content

sizeof (1) disabled slf4j logback (2) ReflectionSizeOf did not expose/implement deepSizeof() #77

@ag88

Description

@ag88

I've encountered 2 issues while trying out sizeof. I'm testing out an apache wicket app and is using sizeof to understand the behavior of the page cache. As Apache wicket does stateful pages and needs to save pages that change states in the page cache, so that your 'back' browser button would work as expected.
https://nightlies.apache.org/wicket/guide/9.x/single.html#_page_storing
(off-topic, I think ehcache could be useful to substitute the page cache)

  1. sizeof disabled slf4j

I'm using apache wicket with its built-in slf4j, added logback
https://logback.qos.ch/manual/introduction.html
for some reason that I did not manage to trace down, adding sizeof dependency in Maven disable slf4j , logback

<dependency>
	<groupId>org.ehcache</groupId>
	<artifactId>sizeof</artifactId>
	<version>0.4.4</version>
</dependency>

if a wicket 'test' app is needed, perhaps this could be used
https://github.com/ag88/wickettest1
I think that this could possibly be due to the interaction with the agent.
I'd not consider this as a 'bug', but that it'd be good to have slf4j, logback still working with sizeof in use.

I managed to get around this 'disabled slf4j logback' issue by copying the java codes (the full package tree) into the wicket app itself and rebuilding it.

  1. ReflectionSizeOf did not expose/implement deepSizeof()

ReflectionSizeOf did not expose/implement deepSizeof()

I extended ReflectionSizeOf and simply delegated deepSizeof() to the superclass and it works !
My thoughts are that ReflectionSizeOf could simply expose it or it could have a 'convenience' class that extend it similarly to provide deepSizeof().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions