Skip to content

Destruction of POPObjects passed as parameters is too extreme #14

Description

@BeatWolf

When passing a POPObject as a parameter it is disconnected at the end of the method.
This can be avoided by calling makePermanent() on the POPObject, which is done automatically if the javaagent detects that the object is assigned to any variable.

The problem is that this does not work when the object is for example put into a map or list and used at a later moment from a different method. At this point the object is disconnected.

It also throws a hard to understand nullpointer exception which should give a clearer error message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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