Skip to content

Custom records awkward to register due to package private constructors in the default records #81

@vlofgren

Description

@vlofgren

This is a very minor API issue I ran into.

I wanted to define a custom record type instead of tacking weird nonstandard semantics onto revisits. This proved difficult since all the existing record types have package private constructors. I was able to work around it by putting the record in a package 'org.netpreserve.jwarc' shadowing the library, thus gaining access to the default records.

If this is the intended way of doing it, it would probably make the library easier to use if there is an example or something demonstrating a working set-up?

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