Gilles created RNG-53:

             Summary: Prevent bad usage of internal class
                 Key: RNG-53
             Project: Commons RNG
          Issue Type: Wish
    Affects Versions: 1.0
            Reporter: Gilles
             Fix For: 1.1

There are two issues with class {{SamplerBase}} class (in package 
# It allows inheritance.
# It introduces in the (protected) API methods that were meant for internal use 

By creating a subclass of {{SamplerBase}}, an application developer can access 
more methods than the intended API (i.e. the {{sample()}} method).

A clean fix would involve a BC breaking of no consequence on bona fide users of 
the API (as there is no reason to call the _protected_ methods from outside the 
package were the samplers are defined).

[A discussion is taking place on the 

This message was sent by Atlassian JIRA

Reply via email to