Re: [math] Checking preconditions on package private functions

2012-11-29 Thread Ted Dunning
That's fine. I think raw use of reflection might make the tests pretty complicated, but the idea is reasonable. Jmockit allows mocking of static methods (I have used it to mock System.nanoTime(), for instance). By using a partial mock class, you can gain access to private methods as well. On Th

[math] Using reflection to test private methods

2012-11-29 Thread Sébastien Brisard
Hi, I've already posted the same question in another thread [1], but I thought having a dedicated thread would increase its visibility. Here is my problem. The new implementation of Beta.logBeta(double, double) I'm currently working on relies on several private methods through a rather complex bra

Re: [math] Checking preconditions on package private functions

2012-11-29 Thread Sébastien Brisard
Hi, 2012/11/27 Gilles Sadowski > Hello. > > > > [...] > > Actually, I would like the methods to be tested, so they cannot be > > private. That's the reason why I made them package private. > > You can indirectly test them by passing appropriate arguments to the public > methods that use them. P

[GUMP@vmgump]: Project commons-scxml-test (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-scxml-test has an issue affecting its community integration. This

[GUMP@vmgump]: Project commons-dbutils (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-dbutils has an issue affecting its community integration. This iss

[GUMP@vmgump]: Project commons-proxy-test (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-proxy-test has an issue affecting its community integration. This

[GUMP@vmgump]: Project commons-chain2 (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-chain2 has an issue affecting its community integration. This issu

[GUMP@vmgump]: Project commons-digester3 (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-digester3 has an issue affecting its community integration. This i

[GUMP@vmgump]: Project commons-io-test (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-io-test has an issue affecting its community integration. This iss

[GUMP@vmgump]: Project commons-dbcp2 (in module apache-commons) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-dbcp2 has an issue affecting its community integration. This issue

[GUMP@vmgump]: Project commons-dbcp (in module commons-dbcp-1.x) failed

2012-11-29 Thread Gump
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at gene...@gump.apache.org. Project commons-dbcp has an issue affecting its community integration. This issue

Re: [DAEMON] Upload of Apache Commons Daemon 1.0.11 Maven artifacts to Nexus

2012-11-29 Thread sebb
The upload still needs to be double-checked please, and then the staging directory can be released (promoted) by the RM. On 27 November 2012 18:50, sebb wrote: > I've uploaded the artifacts from the RC vote area: > > http://people.apache.org/~mturk/daemon-1.0.11/maven/ > > to the Nexus staging ar

Re: [privilizer] promotion plan

2012-11-29 Thread Matt Benson
Hi Emmanuel, and thanks for your elaboration. It seems Lombok primarily (exclusively?) takes the approach of altering the AST of a given Java file, and it appears they may now support both Oracle and Eclipse compilers. I still don't know that I quite consider their approach to be a Commons-friend

[continuum] BUILD FAILURE: Apache Commons - Commons IO -

2012-11-29 Thread Continuum@vmbuild
Build using Java 1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Continuum-Build-Host: vmbuild X-Continuum-Project-Id: 83 X-Continuum-Project-Name: Commons IO Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildI

[continuum] BUILD FAILURE: Apache Commons - Commons IO -

2012-11-29 Thread Continuum@vmbuild
Build using Java 1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Continuum-Build-Host: vmbuild X-Continuum-Project-Id: 83 X-Continuum-Project-Name: Commons IO Online report : http://vmbuild.apache.org/continuum/buildResult.action?buildI

Re: [privilizer] promotion plan

2012-11-29 Thread Emmanuel Bourg
Le 29/11/2012 16:41, Matt Benson a écrit : > Interesting; I apparently hadn't looked at Lombok apparently since they've > added the @DoPrivileged annotation (pretty sure it wasn't always there). You probably looked in the core of Lombok, @DoPrivileged is in the companion project lombok-pg. > My

Re: [privilizer] promotion plan

2012-11-29 Thread Matt Benson
Interesting; I apparently hadn't looked at Lombok apparently since they've added the @DoPrivileged annotation (pretty sure it wasn't always there). My problem with Lombok is that, as I understand it, they have to resort to "tricks" due to the limitations of the public annotation processing APIs, th

Re: [privilizer] promotion plan

2012-11-29 Thread Gary Gregory
Lombok features feels like they could belong in [lang]. Gary On Thu, Nov 29, 2012 at 9:10 AM, Emmanuel Bourg wrote: > This components reminds me of Project Lombok [1]. As I understand the > approach is different, Lombok uses JavaC annotations to generate the > additional code at compile time,

Re: [math] Examples

2012-11-29 Thread Phil Steitz
On 11/28/12 7:38 PM, Patrick Meyer wrote: > Hi Phil, > > I use various parts of Commons Math (CM) for a program I created for > psychometrics called jMetrik, www.ItemAnalysis.com. It does a variety of > statistical procedures from basic descriptive statistics to item response > theory and test equa

Re: [privilizer] promotion plan

2012-11-29 Thread Emmanuel Bourg
This components reminds me of Project Lombok [1]. As I understand the approach is different, Lombok uses JavaC annotations to generate the additional code at compile time, while Privilizer post process the class files with Javassist and works at the bytecode level. Lombok has a @DoPrivileged annot

[ANN] Apache Commons Daemon 1.0.11 released

2012-11-29 Thread Mladen Turk
The Apache Commons Daemon team is pleased to announce the commons-daemon-1.0.11 release! Version 1.0.11 is bug fix release fixing various issues found in 1.0.10 release. Source and binary distributions are available for download from the Apache Commons download site: http://commons.apache.org/da

Re: [ANN] Apache Commons Daemon 1.0.10 released

2012-11-29 Thread luc
Hi Mladen, Le 2012-11-29 05:59, Mladen Turk a écrit : Huh, obviously a typo in the @subject :( It should have been '[ANN] Apache Commons Daemon 1.0.11 released' Should I post another one with the correct @subject? I think so. It may help people looking for the date this specific version was