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 Thu, Nov 29, 2012 at 10:59 PM, Sébastien Brisard <
sebastien.bris...@m4x.org> wrote:

> Does anyone oppose the usage of reflection in unit testing to access
> private methods?
> I personnally think it is a good compromise between encapsulation and
> comprehensive testing.
>


[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 branching.
Due to this complicated branching, I find it much safer to have direct
tests for these private methods, instead of relying on the tests of
Beta.logBeta to validate these methods.
Therefore, in order to preserve encapsulation (these private methods should
really remain private, and not package private, as I previously did [2]), I
propose to use reflection in the unit tests to access these private
methods. I've tested this option locally, it seems to me that it is a
viable option.

What do you think about this compromise?

Sébastien

[1] http://markmail.org/thread/5wafabqjbrswbmv7
[2] Gilles was -- quite rightly -- not too happy about that!


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. Please do not select a visibility scope just for the
> sake of unit testing.
>
> Yes, I know that it is bad practice, and also testing public method allows
indirect testing of the private methods. However, the branching between the
public method (namely Beta.logBeta) and  all private methods is quite
intricate. In order to make sure that the testing of the private methods is
comprehensive, I would be much in favor of direct testing of these private
methods. In fact, there is a way out: reflection indeed permits access to
private methods.

Does anyone oppose the usage of reflection in unit testing to access
private methods?
I personnally think it is a good compromise between encapsulation and
comprehensive testing.

Best regards,
Sébastien


[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 issue affects 1 projects,
 and has been outstanding for 219 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-scxml-test :  Apache Commons


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-scxml-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -WARNING- Overriding Maven settings: 
[/srv/gump/public/workspace/apache-commons/scxml/gump_mvn_settings.xml]
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/scxml/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/scxml/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/apache-commons/scxml/target/surefire-reports



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-scxml-test/gump_work/build_apache-commons_commons-scxml-test.html
Work Name: build_apache-commons_commons-scxml-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 27 secs
Command Line: /opt/maven2/bin/mvn --batch-mode -Dsimplelog.defaultlog=info 
--settings 
/srv/gump/public/workspace/apache-commons/scxml/gump_mvn_settings.xml test 
[Working Directory: /srv/gump/public/workspace/apache-commons/scxml]
M2_HOME: /opt/maven2
-
[INFO] SimpleSCXMLListener - /s2/s2.1/e1.2
[INFO] SimpleSCXMLListener - /s2/s2.1/e1.2
[INFO] SimpleSCXMLListener - /s2/s2.1
[INFO] SimpleSCXMLListener - /s2
[INFO] SimpleSCXMLListener - transition (event = s2.1.done, cond = null, from = 
/s2, to = /s3)
[INFO] SimpleSCXMLListener - /s3
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.341 sec
Running org.apache.commons.scxml.issues.Issue64Test
[INFO] SCXMLSemantics - null: Begin transition bug test ...
[INFO] SimpleSCXMLListener - /tranbug
[INFO] SimpleSCXMLListener - /tranbug
[INFO] SCXMLSemantics - null: somedata
[INFO] SCXMLSemantics - null: *somedata
[INFO] SimpleSCXMLListener - transition (event = show.bug, cond = null, from = 
/tranbug, to = /end)
[INFO] SimpleSCXMLListener - /end
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://www.w3.org/2005/07/scxml"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:30:21
 and digester match "scxml/datamodel/misplaced"
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://www.w3.org/2005/07/scxml"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:36:19
 and digester match "scxml/state/onentry/foo"
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://my.foo.example/"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:37:22
 and digester match "scxml/state/onentry/bar"
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://www.w3.org/2005/07/scxml"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:41:21
 and digester match "scxml/state/transition/datamodel"
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://www.w3.org/2005/07/scxml"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:42:41
 and digester match "scxml/state/transition/datamodel/data"
[WARN] SCXMLParser - Ignoring element  in namespace 
"http://my.foo.example/"; at 
file:/srv/gump/public/workspace/apache-commons/scxml/target/test-classes/org/apache/commons/scxml/issues/issue64-02.xml:49:14
 and digester match "scxml/baz"
[INFO] SCXMLSemantics - null: Begin transition bug test ...
[INFO] SimpleSCXMLListener - /tranbug
[INFO] SimpleSCXMLListener - /tranbug
[INFO] SCXMLSemantics - null: null
[WARN] SimpleErrorReporter - EXPRESSION_ERROR (eval(''*' + dummy'):null): 
[INFO] SimpleSCXMLListener - transition (event = show.bug, cond = null, from = 
/tranbug, to = /end)
[INFO] SimpleSCXMLListener - /end
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec

Results :

Failed tests: 
  testCustomActionCallbacks(org.apache.commons.scxml.model.CustomActionTest)

Tests run: 229, Failures: 1, Errors: 0, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO

[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 issue affects 1 projects,
 and has been outstanding for 214 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-dbutils :  Commons DbUtils


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-dbutils/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-dbutils-*[0-9T].jar] identifier set to 
project name
 -INFO- Optional dependency mockito failed with reason build failed
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/dbutils/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/dbutils/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/apache-commons/dbutils/target/surefire-reports
 -WARNING- No directory 
[/srv/gump/public/workspace/apache-commons/dbutils/target/surefire-reports]
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-dbutils/gump_work/build_apache-commons_commons-dbutils.html
Work Name: build_apache-commons_commons-dbutils (Type: Build)
Work ended in a state of : Failed
Elapsed: 16 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/apache-commons/dbutils/gump_mvn_settings.xml package 
[Working Directory: /srv/gump/public/workspace/apache-commons/dbutils]
M2_HOME: /opt/maven2
-
1K downloaded  (mockito-core-1.9.0.pom)
Downloading: 
http://localhost:8192/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.pom
479b downloaded  (hamcrest-all-1.1.pom)
Downloading: 
http://localhost:8192/maven2/org/mockito/mockito-core/1.9.0/mockito-core-1.9.0.jar
Downloading: 
http://localhost:8192/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.jar
273K downloaded  (hamcrest-all-1.1.jar)
1381K downloaded  (mockito-core-1.9.0.jar)
[INFO] [antrun:run {execution: javadoc.resources}]
[INFO] Executing tasks

main:
 [copy] Copying 2 files to 
/srv/gump/public/workspace/apache-commons/dbutils/target/apidocs/META-INF
[INFO] Executed tasks
[WARNING] The parameter expression: 'project.build.resources' used in mojo: 
'process' has been deprecated. Use 'project.resources' instead.
[INFO] [remote-resources:process {execution: default}]
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd 
/srv/gump/public/workspace/apache-commons/dbutils && svn --non-interactive info
[INFO] Working directory: /srv/gump/public/workspace/apache-commons/dbutils
[INFO] Storing buildNumber: ?? at timestamp: 1354252512233
[INFO] Executing: /bin/sh -c cd 
/srv/gump/public/workspace/apache-commons/dbutils && svn --non-interactive info
[INFO] Working directory: /srv/gump/public/workspace/apache-commons/dbutils
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/srv/gump/public/workspace/apache-commons/dbutils/src/main/resources
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 29 source files to 
/srv/gump/public/workspace/apache-commons/dbutils/target/classes
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
/srv/gump/public/workspace/apache-commons/dbutils/src/main/java/org/apache/commons/dbutils/DbUtils.java:[334,25]
 error: DriverProxy is not abstract and does not override abstract method 
getParentLogger() in Driver
[INFO] 1 error
[INFO] -
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure
/srv/gump/public/workspace/apache-commons/dbutils/src/main/java/org/apache/commons/dbutils/DbUtils.java:[334,25]
 error: DriverProxy is not abstract and does not override abstract method 
getParentLogger() in Driver

[INFO] 
[INFO] For more information, run Mav

[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 issue affects 1 projects,
 and has been outstanding for 50 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-proxy-test :  Apache Commons


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-proxy-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -WARNING- Overriding Maven settings: 
[/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml]
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/proxy/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/apache-commons/proxy/target/surefire-reports



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-proxy-test/gump_work/build_apache-commons_commons-proxy-test.html
Work Name: build_apache-commons_commons-proxy-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 15 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/apache-commons/proxy/gump_mvn_settings.xml test 
[Working Directory: /srv/gump/public/workspace/apache-commons/proxy]
M2_HOME: /opt/maven2
-
Running org.apache.commons.proxy.factory.util.TestMethodSignature
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec

Results :

Tests in error: 
  
testMethodInvocationImplementation(org.apache.commons.proxy.interceptor.TestMethodInterceptorAdapter)
  
testSerialization(org.apache.commons.proxy.interceptor.TestMethodInterceptorAdapter)
  
testMethodInterception(org.apache.commons.proxy.interceptor.TestMethodInterceptorAdapter)
  testInvalidHandlerName(org.apache.commons.proxy.invoker.TestXmlRpcInvoker)
  
testMethodInvocation(org.apache.commons.proxy.invoker.TestInvocationHandlerAdapter)
  
testInterceptorEquals(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerEquals(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptorWithSuperclass(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerWithSuperclass(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testProxiesWithClashingFinalMethodInSuperclass(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptorHashCode(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerHashCode(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testBooleanInterceptorParameter(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testChangingArguments(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testCreateInterceptorProxy(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptingProxyClassCaching(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptingProxySerializable(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptorProxyWithCheckedException(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInterceptorProxyWithUncheckedException(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerProxy(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerProxyClassCaching(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testInvokerProxySerializable(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testMethodInvocationClassCaching(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testMethodInvocationDuplicateMethods(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testMethodInvocationImplementation(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  
testWithNonAccessibleTargetType(org.apache.commons.proxy.factory.javassist.TestJavassistProxyFactory)
  testCreateNullObject(org.apache.commons.proxy.TestProxyUtils)
  testCreateNullObjectWithClassLoader(org.apache.commons.proxy.TestProxyUtils)

Tests run: 179, Failures: 0, Errors: 28, Skipped: 0

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There 

[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 issue affects 1 projects,
 and has been outstanding for 236 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-chain2 :  GoF "Chain of Responsibility" pattern


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-chain2/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-chain2-*[0-9T].jar] identifier set to project 
name
 -DEBUG- Sole pom output [pom.xml] identifier set to project name
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/chain/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/chain/pom.xml
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-chain2/gump_work/build_apache-commons_commons-chain2.html
Work Name: build_apache-commons_commons-chain2 (Type: Build)
Work ended in a state of : Failed
Elapsed: 1 min 2 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/apache-commons/chain/gump_mvn_settings.xml package 
[Working Directory: /srv/gump/public/workspace/apache-commons/chain]
M2_HOME: /opt/maven2
-
[INFO] Building war: 
/srv/gump/public/workspace/apache-commons/chain/apps/cookbook-examples/target/chain-cookbook-examples-2.0-SNAPSHOT.war
[INFO] 
[INFO] Building Apache Commons Chain :: Distribution Packages
[INFO]task-segment: [package]
[INFO] 
[INFO] snapshot org.apache.commons:commons-chain2-configuration:2.0-SNAPSHOT: 
checking for updates from apache.snapshots
Downloading: 
http://localhost:8192/repo/m2-snapshot-repository/org/apache/commons/commons-chain2-configuration/2.0-SNAPSHOT/commons-chain2-configuration-2.0-SNAPSHOT.pom
[INFO] Unable to find resource 
'org.apache.commons:commons-chain2-configuration:pom:2.0-SNAPSHOT' in 
repository apache.snapshots (http://repository.apache.org/snapshots)
Downloading: 
http://localhost:8192/repo/m2-snapshot-repository/org/apache/commons/commons-chain2-configuration/2.0-SNAPSHOT/commons-chain2-configuration-2.0-SNAPSHOT.jar
[INFO] Unable to find resource 
'org.apache.commons:commons-chain2-configuration:jar:2.0-SNAPSHOT' in 
repository apache.snapshots (http://repository.apache.org/snapshots)
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

Missing:
--
1) org.apache.commons:commons-chain2-configuration:jar:2.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=org.apache.commons 
-DartifactId=commons-chain2-configuration -Dversion=2.0-SNAPSHOT 
-Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
  mvn deploy:deploy-file -DgroupId=org.apache.commons 
-DartifactId=commons-chain2-configuration -Dversion=2.0-SNAPSHOT 
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1) org.apache.commons:commons-chain2:pom:2.0-SNAPSHOT
2) org.apache.commons:commons-chain2-configuration:jar:2.0-SNAPSHOT

--
1 required artifact is missing.

for artifact: 
  org.apache.commons:commons-chain2:pom:2.0-SNAPSHOT

from the specified remote repositories:
  gump-central (http://localhost:8192/maven2),
  gump-apache.snapshots (http://localhost:8192/repo/m2-snapshot-repository)



[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 minute 
[INFO] Finished at: Fri Nov 30 04:56:53 UTC 2012
[INFO] Final Memory: 114M/241M
[INFO] 
-

To subscribe to this information via syndicated feeds:
- RSS: 
http://vmgump.apache.org/gump/public/apache-commons/commons-chain2/rss.xml
- Atom: 
http://vmgump.apache.org/gump/public/apache-commons/commons-chain2/

[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 issue affects 2 projects,
 and has been outstanding for 45 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-digester3 :  XML to Java Object Configuration
- commons-digester3-test :  Apache Commons


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-digester3/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-digester3-*[0-9T].jar] identifier set to 
project name
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/digester/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/srv/gump/public/workspace/apache-commons/digester/pom.xml
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-digester3/gump_work/build_apache-commons_commons-digester3.html
Work Name: build_apache-commons_commons-digester3 (Type: Build)
Work ended in a state of : Failed
Elapsed: 60 secs
Command Line: /opt/maven2/bin/mvn --batch-mode -DskipTests=true --settings 
/srv/gump/public/workspace/apache-commons/digester/gump_mvn_settings.xml 
package 
[Working Directory: /srv/gump/public/workspace/apache-commons/digester]
M2_HOME: /opt/maven2
-
[INFO] [remote-resources:process {execution: default}]
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor && svn 
--non-interactive info
[INFO] Working directory: 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor
[INFO] Storing buildNumber: ?? at timestamp: 1354247234870
[INFO] Executing: /bin/sh -c cd 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor && svn 
--non-interactive info
[INFO] Working directory: 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] Copying 2 resources to META-INF
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 5 source files to 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor/target/classes
[INFO] [bundle:manifest {execution: bundle-manifest}]
[debug] execute contextualize
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'iso-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor/src/test/resources
[INFO] Copying 0 resource to META-INF
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 3 source files to 
/srv/gump/public/workspace/apache-commons/digester/annotations-processor/target/test-classes
>@org.apache.commons.digester3.annotations.rules.ObjectCreate(pattern="rss/channel")
>@org.apache.commons.digester3.annotations.rules.ObjectCreate(pattern="rss/channel/image")
>@org.apache.commons.digester3.annotations.rules.ObjectCreate(pattern="rss/channel/item")
>
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] error: Impossible to generate class 
org.apache.commons.digester3.annotations.processor.GeneratedRulesModule: 
Attempt to recreate a file for type 
org.apache.commons.digester3.annotations.processor.GeneratedRulesModule
[ERROR] error: Impossible to generate class 
org.apache.commons.digester3.annotations.processor.GeneratedRulesModule: 
Attempt to recreate a file for type 
org.apache.commons.digester3.annotations.processor.GeneratedRulesModule
[INFO] 2 errors 
[INFO] -
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] Compilation failure

error: Impossible to generate class 
org.apache.commons.digester3.annotations.processor.GeneratedRulesModule: 
Attempt to recreate a file for type 
org.apache.commons.digester3.annota

[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 issue affects 1 projects,
 and has been outstanding for 46 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-io-test :  Apache Commons


Full details are available at:

http://vmgump.apache.org/gump/public/apache-commons/commons-io-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -WARNING- Overriding Maven settings: 
[/srv/gump/public/workspace/apache-commons/io/gump_mvn_settings.xml]
 -DEBUG- (Apache Gump generated) Apache Maven Settings in: 
/srv/gump/public/workspace/apache-commons/io/gump_mvn_settings.xml
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: /srv/gump/public/workspace/apache-commons/io/pom.xml
 -INFO- Project Reports in: 
/srv/gump/public/workspace/apache-commons/io/target/surefire-reports



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-io-test/gump_work/build_apache-commons_commons-io-test.html
Work Name: build_apache-commons_commons-io-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 1 min 55 secs
Command Line: /opt/maven2/bin/mvn --batch-mode --settings 
/srv/gump/public/workspace/apache-commons/io/gump_mvn_settings.xml test 
[Working Directory: /srv/gump/public/workspace/apache-commons/io]
M2_HOME: /opt/maven2
-
Running org.apache.commons.io.comparator.CompositeFileComparatorTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 sec
Running org.apache.commons.io.comparator.DefaultFileComparatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.131 sec
Running org.apache.commons.io.comparator.DirectoryFileComparatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.143 sec
Running org.apache.commons.io.comparator.ExtensionFileComparatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.136 sec
Running org.apache.commons.io.comparator.PathFileComparatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.138 sec
Running org.apache.commons.io.comparator.NameFileComparatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec
Running org.apache.commons.io.IOUtilsTestCase
Tests run: 65, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.603 sec
Running org.apache.commons.io.IOCaseTestCase
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.146 sec
Running org.apache.commons.io.LineIteratorTestCase
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 sec
Running org.apache.commons.io.FileUtilsCleanDirectoryTestCase
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.171 sec
Running org.apache.commons.io.IOUtilsWriteTestCase
Tests run: 53, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.403 sec
Running org.apache.commons.io.FilenameUtilsWildcardTestCase
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 sec
Running org.apache.commons.io.FileUtilsListFilesTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.153 sec
Running org.apache.commons.io.FileSystemUtilsTestCase
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.285 sec
Running org.apache.commons.io.DirectoryWalkerTestCaseJava4
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.236 sec

Results :

Failed tests:   
testIO_356(org.apache.commons.io.input.CharSequenceInputStreamTest): 
bufferSize=10 dataSize=13: arrays first differed at element [0]; expected:<65> 
but was:<78>

Tests run: 987, Failures: 1, Errors: 0, Skipped: 1

[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] There are test failures.

Please refer to 
/srv/gump/public/workspace/apache-commons/io/target/surefire-reports for the 
individual test results.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 1 minute 54 seconds
[INFO] Finished at: Fri Nov 30 02:13:40 UTC 2012
[INFO] Final Memory: 37M/89M
[INFO] 
-

To subscribe to this information via syndicated feeds:
- RSS: 
http://vmgump.apache.org/gump/public/apache-commons/commons-io-test/rss.xml
- Atom: 
http://vmgum

[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 affects 1 projects,
 and has been outstanding for 214 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-dbcp2 :  Database Connection Pool


Full details are available at:
http://vmgump.apache.org/gump/public/apache-commons/commons-dbcp2/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-dbcp2-*[0-9T].jar] identifier set to project 
name
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/apache-commons/commons-dbcp2/gump_work/build_apache-commons_commons-dbcp2.html
Work Name: build_apache-commons_commons-dbcp2 (Type: Build)
Work ended in a state of : Failed
Elapsed: 9 secs
Command Line: /usr/lib/jvm/java-7-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only 
-Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml 
dist 
[Working Directory: /srv/gump/public/workspace/apache-commons/dbcp]
CLASSPATH: 
/usr/lib/jvm/java-7-oracle/lib/tools.jar:/srv/gump/public/workspace/apache-commons/dbcp/dist/classes:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/packages/jta-spec1_0_1/jta-spec1_0_1.jar:/srv/gump/packages/jdbc2_0/jdbc2_0-stdext.jar:/srv/gump/public/workspace/junit/dist/junit-30112012.jar:/srv/gump/public/workspace/junit/dist/junit-dep-30112012.jar:/srv/gump/public/workspace/apache-commons/pool/dist/commons-pool2-2.0-SNAPSHOT.jar
-
[mkdir] Created dir: 
/srv/gump/public/workspace/apache-commons/dbcp/build/classes
[javac] Compiling 52 source files to 
/srv/gump/public/workspace/apache-commons/dbcp/build/classes
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/BasicDataSource.java:52:
 error: BasicDataSource is not abstract and does not override abstract method 
getParentLogger() in CommonDataSource
[javac] public class BasicDataSource implements DataSource {
[javac]^
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/DelegatingConnection.java:65:
 error: DelegatingConnection is not abstract and does not override abstract 
method getNetworkTimeout() in Connection
[javac] public class DelegatingConnection extends AbandonedTrace
[javac]^
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/DelegatingStatement.java:46:
 error: DelegatingStatement is not abstract and does not override abstract 
method isCloseOnCompletion() in Statement
[javac] public class DelegatingStatement extends AbandonedTrace implements 
Statement {
[javac]^
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/DelegatingPreparedStatement.java:57:
 error: DelegatingPreparedStatement is not abstract and does not override 
abstract method isCloseOnCompletion() in Statement
[javac] public class DelegatingPreparedStatement extends DelegatingStatement
[javac]^
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/DelegatingCallableStatement.java:58:
 error: DelegatingCallableStatement is not abstract and does not override 
abstract method getObject(String,Class) in CallableStatement
[javac] public class DelegatingCallableStatement extends 
DelegatingPreparedStatement
[javac]^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method 
getObject(String,Class)
[javac] 
/srv/gump/public/workspace/apache-commons/dbcp/src/java/org/apache/commons/dbcp2/DelegatingDatabaseMetaData.java:36:
 error: DelegatingDatabaseMetaData is not abstract and does not override 
abstract method generatedKeyAlwaysReturned() in DatabaseMetaData
[javac] public clas

[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 affects 18 projects,
 and has been outstanding for 45 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-dbcp :  Object Pooling
- db-ddlutils :  Easy-to-use component for working with Database Definition 
(...
- jakarta-tomcat-4.0 :  Servlet 2.3 and JSP 1.2 Reference Implementation
- jakarta-tomcat-catalina :  Servlet 2.4 Reference Implementation
- jakarta-tomcat-dbcp :  Servlet 2.4 and JSP 2.0 Reference Implementation
- jakarta-tomcat-jk :  Connectors to various web servers
- javax.el :  Java Servlet 2.5 & Server Pages JSP 2.1 implementation (for 
...
- javax.servlet :  Java Servlet 2.5 & Server Pages JSP 2.1 implementation 
(for ...
- javax.servlet.jsp :  Java Servlet 2.5 & Server Pages JSP 2.1 
implementation (for ...
- solr :  Java Based Search Engine
- solr-test :  Java Based Search Engine
- tomcat-tc6 :  Java Servlet 2.5 & Server Pages JSP 2.1 implementation (for 
...
- tomcat-tc7.0.x :  Tomcat 7.x, a web server implementing Java Servlet 3.0,
...
- tomcat-tc7.0.x-dbcp :  Tomcat 7.x, a web server implementing Java Servlet 
3.0,
...
- tomcat-tc7.0.x-test :  Tomcat 7.x, a web server implementing Java Servlet 
3.0,
...
- tomcat-trunk :  Tomcat 8.x, a web server implementing Java Servlet 3.1,
...
- tomcat-trunk-dbcp :  Tomcat 8.x, a web server implementing Java Servlet 
3.1,
...
- tomcat-trunk-test :  Tomcat 8.x, a web server implementing Java Servlet 
3.1,
...


Full details are available at:

http://vmgump.apache.org/gump/public/commons-dbcp-1.x/commons-dbcp/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole jar output [commons-dbcp.jar] identifier set to project name
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-dbcp-1.x/commons-dbcp/gump_work/build_commons-dbcp-1.x_commons-dbcp.html
Work Name: build_commons-dbcp-1.x_commons-dbcp (Type: Build)
Work ended in a state of : Failed
Elapsed: 9 secs
Command Line: /usr/lib/jvm/java-7-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only 
-Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml 
dist 
[Working Directory: /srv/gump/public/workspace/commons-dbcp-1.x]
CLASSPATH: 
/usr/lib/jvm/java-7-oracle/lib/tools.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/public/workspace/junit/dist/junit-30112012.jar:/srv/gump/public/workspace/junit/dist/junit-dep-30112012.jar:/srv/gump/packages/jta-spec1_0_1/jta-spec1_0_1.jar:/srv/gump/public/workspace/commons-pool-1.x/dist/commons-pool-1.6.1-SNAPSHOT.jar
-
[javac]^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method 
getObject(String,Class)
[javac] 
/srv/gump/public/workspace/commons-dbcp-1.x/src/java/org/apache/commons/dbcp/DelegatingConnection.java:65:
 error: DelegatingConnection is not abstract and does not override abstract 
method getNetworkTimeout() in Connection
[javac] public class DelegatingConnection extends AbandonedTrace
[javac]^
[javac] 
/srv/gump/public/workspace/commons-dbcp-1.x/src/java/org/apache/commons/dbcp/DelegatingDatabaseMetaData.java:38:
 error: DelegatingDatabaseMetaData is not abstract and does not override 
abstract method generatedKeyAlwaysReturned() in DatabaseMetaData
[javac] public class DelegatingDatabaseMetaData extends AbandonedTrace
[javac]^
[javac] 
/srv/gump/public/workspace/commons-dbcp-1.x/src/java/org/apache/commons/dbcp/DelegatingResultSet.java:61:
 error: DelegatingResultSet is not abstract and does not override abstract 
method getObject(String,Class) in ResultSet
[javac] public class DelegatingResultSet extends Aban

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 area:
>
> https://repository.apache.org/content/repositories/orgapachecommons-086/commons-daemon/commons-daemon/1.0.11/
>
> The directory contents agree as far as I am concerned, but it would be
> good if one or two others could confirm that the files are indeed the
> same.
>
> Thanks!
>
> -- Forwarded message --
> From: Nexus Repository Manager 
> Date: 27 November 2012 18:41
> Subject: Nexus: Staging Completed.
> To: Sebastian Bazley , comm...@commons.apache.org
>
>
> Description:
>
> Prepare for potential 1.0.11 release
>
> Details:
>
> The following artifacts have been staged to the org.apache.commons-086
> (u:sebb, a:80.176.146.62) repository.
>
> archetype-catalog.xml
> commons-daemon-1.0.11-src.tar.gz.asc
> commons-daemon-1.0.11-bin.tar.gz.asc
> commons-daemon-1.0.11-src.zip.asc
> commons-daemon-1.0.11.pom.asc
> commons-daemon-1.0.11-src.zip
> commons-daemon-1.0.11-sources.jar
> commons-daemon-1.0.11-native-src.zip
> commons-daemon-1.0.11.jar.asc
> commons-daemon-1.0.11.pom
> commons-daemon-1.0.11-bin.zip
> commons-daemon-1.0.11-bin-windows.zip.asc
> commons-daemon-1.0.11-sources.jar.asc
> commons-daemon-1.0.11-native-src.tar.gz.asc
> commons-daemon-1.0.11-native-src.zip.asc
> commons-daemon-1.0.11-javadoc.jar
> commons-daemon-1.0.11-src.tar.gz
> commons-daemon-1.0.11-native-src.tar.gz
> commons-daemon-1.0.11-bin-windows.zip
> commons-daemon-1.0.11-bin.tar.gz
> commons-daemon-1.0.11-javadoc.jar.asc
> commons-daemon-1.0.11.jar
> commons-daemon-1.0.11-bin.zip.asc

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



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-friendly one, but I take your point that this might be just one of
potentially unlimited code modifications a new component could support.
This would go back to the idea of something like a BCEL library
(notwithstanding the fact that the existing privilizer code does not use
BCEL).

Matt


On Thu, Nov 29, 2012 at 10:13 AM, Emmanuel Bourg  wrote:

> 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 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,
> > they are only compatible with the Oracle compiler, have problems when
> used
> > with other technologies e.g. AspectJ (IIRC).  If not for these
> shortcomings
> > (and I have no doubt the Lombok team would have done things "correctly"
> > were that option open to them) I would have been using Lombok long ago.
>
> I guess the technique adopted by Lombok is the only one suitable for
> generating new methods like getters and setters, otherwise the
> compilation would fail when calling a not yet generated method. Bytecode
> processing would not allow that.
>
> For altering the body of existing methods like @DoPrivileged or
> @SwingInvokeLater bytecode processing is perfectly fine.
>
>
> Emmanuel Bourg
>
>
>


[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?buildId=25359&projectId=83

Build statistics:
  State: Failed
  Previous State: Failed
  Started at: Thu 29 Nov 2012 17:20:16 +
  Finished at: Thu 29 Nov 2012 17:22:09 +
  Total time: 1m 52s
  Build Trigger: Schedule
  Build Number: 301
  Exit code: 1
  Building machine hostname: vmbuild
  Operating system : Linux(unknown)
  Java Home version : 
  java version "1.6.0_30"
  Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
  Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

  Builder version :
  Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+)
  Java version: 1.6.0_30
  Java home: /usr/lib/jvm/jdk1.6.0_30/jre
  Default locale: en_US, platform encoding: ANSI_X3.4-1968
  OS name: "linux" version: "2.6.32-41-server" arch: "amd64" Family: 
"unix"


SCM Changes:

Changed: ggregory @ Thu 29 Nov 2012 16:21:00 +
Comment: Normalize method names: method_paratype
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415245 )

Changed: ggregory @ Thu 29 Nov 2012 16:24:53 +
Comment: Normalize method names: method_paratype
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415248 )

Changed: ggregory @ Thu 29 Nov 2012 16:25:36 +
Comment: Remove comment: // ---...
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415249 )

Changed: ggregory @ Thu 29 Nov 2012 16:29:06 +
Comment: Normalize method names: method_paratype
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415251 )

Changed: ggregory @ Thu 29 Nov 2012 16:29:49 +
Comment: Now that the method names are normalized, sort members.
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415252 )

Changed: ggregory @ Thu 29 Nov 2012 16:31:14 +
Comment: Javadoc.
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415254 )


Dependencies Changes:

No dependencies changed



Build Definition:

POM filename: pom.xml
Goals: clean deploy   
Arguments: --batch-mode -Pjava-1.6 -Dgpg.skip -Prelease
Build Fresh: false
Always Build: false
Default Build Definition: true
Schedule: COMMONS_SCHEDULE
Profile Name: Maven 2.2.1
Description: Build using Java 1.6


Test Summary:

Tests: 987
Failures: 1
Errors: 0
Success Rate: 99
Total time: 68.54402


Test Failures:


CharSequenceInputStreamTest
testIO_356 :
  bufferSize=10 dataSize=13
  bufferSize=10 dataSize=13: arrays first differed at element [0]; 
expected:<65> but was:<78>
at 
org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:52)
at org.junit.Assert.internalArrayEquals(Assert.java:416)
at org.junit.Assert.assertArrayEquals(Assert.java:202)
at 
org.apache.commons.io.input.CharSequenceInputStreamTest.testIO_356(CharSequenceInputStreamTest.java:184)
at 
org.apache.commons.io.input.CharSequenceInputStreamTest.testIO_356(CharSequenceInputStreamTest.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunn

[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?buildId=25358&projectId=83

Build statistics:
  State: Failed
  Previous State: Failed
  Started at: Thu 29 Nov 2012 16:20:20 +
  Finished at: Thu 29 Nov 2012 16:22:17 +
  Total time: 1m 56s
  Build Trigger: Schedule
  Build Number: 301
  Exit code: 1
  Building machine hostname: vmbuild
  Operating system : Linux(unknown)
  Java Home version : 
  java version "1.6.0_30"
  Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
  Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)

  Builder version :
  Apache Maven 2.2.1 (r801777; 2009-08-06 19:16:01+)
  Java version: 1.6.0_30
  Java home: /usr/lib/jvm/jdk1.6.0_30/jre
  Default locale: en_US, platform encoding: ANSI_X3.4-1968
  OS name: "linux" version: "2.6.32-41-server" arch: "amd64" Family: 
"unix"


SCM Changes:

Changed: ggregory @ Thu 29 Nov 2012 16:00:37 +
Comment: Add 
IOUtils.read and readFully(ReadableByteChannel, ByteBuffer buffer).
Files changed:
  /commons/proper/io/trunk/src/changes/changes.xml ( 1415223 )
  /commons/proper/io/trunk/src/main/java/org/apache/commons/io/IOUtils.java ( 
1415223 )
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415223 )

Changed: ggregory @ Thu 29 Nov 2012 16:04:51 +
Comment: Normalize method names: method_paratype
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415227 )

Changed: ggregory @ Thu 29 Nov 2012 16:16:45 +
Comment: Normalize method names: method_paratype
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415240 )

Changed: ggregory @ Thu 29 Nov 2012 16:18:23 +
Comment: Fix formatting in copyLarge methods.
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415243 )

Changed: ggregory @ Thu 29 Nov 2012 16:19:33 +
Comment: Fix formatting in copyLarge methods.
Files changed:
  
/commons/proper/io/trunk/src/test/java/org/apache/commons/io/IOUtilsTestCase.java
 ( 1415244 )


Dependencies Changes:

No dependencies changed



Build Definition:

POM filename: pom.xml
Goals: clean deploy   
Arguments: --batch-mode -Pjava-1.6 -Dgpg.skip -Prelease
Build Fresh: false
Always Build: false
Default Build Definition: true
Schedule: COMMONS_SCHEDULE
Profile Name: Maven 2.2.1
Description: Build using Java 1.6


Test Summary:

Tests: 987
Failures: 1
Errors: 0
Success Rate: 99
Total time: 69.690994


Test Failures:


CharSequenceInputStreamTest
testIO_356 :
  bufferSize=10 dataSize=13
  bufferSize=10 dataSize=13: arrays first differed at element [0]; 
expected:<65> but was:<78>
at 
org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:52)
at org.junit.Assert.internalArrayEquals(Assert.java:416)
at org.junit.Assert.assertArrayEquals(Assert.java:202)
at 
org.apache.commons.io.input.CharSequenceInputStreamTest.testIO_356(CharSequenceInputStreamTest.java:184)
at 
org.apache.commons.io.input.CharSequenceInputStreamTest.testIO_356(CharSequenceInputStreamTest.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.ja

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 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,
> they are only compatible with the Oracle compiler, have problems when used
> with other technologies e.g. AspectJ (IIRC).  If not for these shortcomings
> (and I have no doubt the Lombok team would have done things "correctly"
> were that option open to them) I would have been using Lombok long ago.

I guess the technique adopted by Lombok is the only one suitable for
generating new methods like getters and setters, otherwise the
compilation would fail when calling a not yet generated method. Bytecode
processing would not allow that.

For altering the body of existing methods like @DoPrivileged or
@SwingInvokeLater bytecode processing is perfectly fine.


Emmanuel Bourg




smime.p7s
Description: Signature cryptographique S/MIME


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,
they are only compatible with the Oracle compiler, have problems when used
with other technologies e.g. AspectJ (IIRC).  If not for these shortcomings
(and I have no doubt the Lombok team would have done things "correctly"
were that option open to them) I would have been using Lombok long ago.

Matt


On Thu, Nov 29, 2012 at 9:15 AM, Gary Gregory wrote:

> 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, while Privilizer post process the class
> > files with Javassist and works at the bytecode level.
> >
> > Lombok has a @DoPrivileged annotation, as well as many other ones
> > [2][3]. The one I find very useful is the @SwingInvokeLater annotation
> > [4] to ensure the code runs on the UI thread. That's a killer feature
> > when developing Swing applications.
> >
> > Maybe the scope of [privilizer] could be widened to other annotations
> > post processing? I don't know if it's worth competing with Lombok though.
> >
> >
> > Emmanuel Bourg
> >
> >
> > [1] http://projectlombok.org
> > [2] http://projectlombok.org/features
> > [3] https://github.com/peichhorn/lombok-pg/wiki
> > [4] http://peichhorn.github.com/lombok-pg/SwingInvoke.html
> >
> >
> > Le 28/11/2012 21:44, Matt Benson a écrit :
> > > Hi all,
> > >   As long as I've been part of the Commons community I don't know that
> > I've
> > > encountered this exact situation:  a committer adds some code to the
> > > sandbox that is more or less complete.  I don't know precisely what
> > > requirements must be met before we promote [privilizer] to proper. We
> > seem
> > > to have interest from one or more members of the PMC as prospective
> > users;
> > > this would seem to imply that were I hit by a bus there ought to be
> > someone
> > > interested in maintaining the component.  Speaking for BVal I intend to
> > put
> > > this component to immediate use there (that's what I wrote it for!).
> >  Mark
> > > has mentioned that OWB and perhaps other ASF projects might want to
> make
> > > use of it.  What else do I need to do?
> > >
> > > Matt
> > >
> >
> >
> >
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
> Spring Batch in Action: http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>


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, while Privilizer post process the class
> files with Javassist and works at the bytecode level.
>
> Lombok has a @DoPrivileged annotation, as well as many other ones
> [2][3]. The one I find very useful is the @SwingInvokeLater annotation
> [4] to ensure the code runs on the UI thread. That's a killer feature
> when developing Swing applications.
>
> Maybe the scope of [privilizer] could be widened to other annotations
> post processing? I don't know if it's worth competing with Lombok though.
>
>
> Emmanuel Bourg
>
>
> [1] http://projectlombok.org
> [2] http://projectlombok.org/features
> [3] https://github.com/peichhorn/lombok-pg/wiki
> [4] http://peichhorn.github.com/lombok-pg/SwingInvoke.html
>
>
> Le 28/11/2012 21:44, Matt Benson a écrit :
> > Hi all,
> >   As long as I've been part of the Commons community I don't know that
> I've
> > encountered this exact situation:  a committer adds some code to the
> > sandbox that is more or less complete.  I don't know precisely what
> > requirements must be met before we promote [privilizer] to proper. We
> seem
> > to have interest from one or more members of the PMC as prospective
> users;
> > this would seem to imply that were I hit by a bus there ought to be
> someone
> > interested in maintaining the component.  Speaking for BVal I intend to
> put
> > this component to immediate use there (that's what I wrote it for!).
>  Mark
> > has mentioned that OWB and perhaps other ASF projects might want to make
> > use of it.  What else do I need to do?
> >
> > Matt
> >
>
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
Spring Batch in Action: http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


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 equating. jMetrik has a fairly large international user
> base. I'm currently working on version 3, which involved a full switch to CM
> 3.0. Feel free to use the program description on the homepage of the
> website. The code is pretty extensive, but I can provide specific examples
> of how I use CM. I first found CM several years ago when I was searching for
> source code for numerical optimization. I'm happy to help out. Let me know
> if you would like more information.

Thanks, Patrick!  Yes, it would be great if you could provide some
examples.  What would be doubly cool is if there are some showing
either how you helped us make needed improvements and / or still
existing deficiencies you are helping address (e.g. missing data ;)

Thanks again.

Phil
>
> Patrick
>
>
> -Original Message-
> From: Phil Steitz [mailto:phil.ste...@gmail.com] 
> Sent: Wednesday, November 28, 2012 8:01 PM
> To: Commons Developers List; Commons Users List
> Subject: [math] Examples
>
> Apologies for the cross-post.  Please respond to just the dev list.
>
> I am going to do a talk on Commons Math at Apachecon US in Portland next
> February.  One of the things I want to do in the talk is to present some
> examples of practical use of the library.  I would love to get some examples
> from the community that I could use, with acknowledgement, under the ASL.
>
> Ideal examples can be described simply (i.e., not too much arcane
> domain-specific theory needed to understand the practical
> application) and use [math] APIs simply and directly.  For example, one of
> my own applications is a discrete event simulator that uses [math] APIs to
> generate event inter-arrival times and to accumulate latency statistics.
> Part of the goal of the talk in general and the examples in particular is to
> show people how to find the things they need to solve problems using [math],
> so some information on how you found your way to the needed goodies (or
> helped us improve the library so the goodies you needed were there) will
> also be helpful.
>
> Thanks in advance for any contributions.  We can discuss ideas on the dev
> list, or you can send me private mail.  I will take code and descriptions in
> any form.
>
> Thanks!
>
> Phil
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



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 annotation, as well as many other ones
[2][3]. The one I find very useful is the @SwingInvokeLater annotation
[4] to ensure the code runs on the UI thread. That's a killer feature
when developing Swing applications.

Maybe the scope of [privilizer] could be widened to other annotations
post processing? I don't know if it's worth competing with Lombok though.


Emmanuel Bourg


[1] http://projectlombok.org
[2] http://projectlombok.org/features
[3] https://github.com/peichhorn/lombok-pg/wiki
[4] http://peichhorn.github.com/lombok-pg/SwingInvoke.html


Le 28/11/2012 21:44, Matt Benson a écrit :
> Hi all,
>   As long as I've been part of the Commons community I don't know that I've
> encountered this exact situation:  a committer adds some code to the
> sandbox that is more or less complete.  I don't know precisely what
> requirements must be met before we promote [privilizer] to proper. We seem
> to have interest from one or more members of the PMC as prospective users;
> this would seem to imply that were I hit by a bus there ought to be someone
> interested in maintaining the component.  Speaking for BVal I intend to put
> this component to immediate use there (that's what I wrote it for!).  Mark
> has mentioned that OWB and perhaps other ASF projects might want to make
> use of it.  What else do I need to do?
> 
> Matt
> 




smime.p7s
Description: Signature cryptographique S/MIME


[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/daemon/download_daemon.cgi

When downloading, please verify signatures using the KEYS file
available at the above location when downloading the release.

For more information on Apache Commons Daemon, visit the
Commons Daemon home page:

http://commons.apache.org/daemon/


Thank you,
--
The Apache Commons Daemon team

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



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 released

as all these lists are archived and crawled by search tools indexers.

best regards,
Luc



Regards



-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org