I've created a PR and the issue https://issues.apache.org/jira/browse/ARTEMIS-2669 to address this: we've chosen to remove that old code, simplifying the current implementation and making the treatment of AMQP not durable messages more correct while depaging. Thanks everybody for the discussion and help :)
-- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dev-f2368404.html