Bean with a Collection Set

2006-10-25 Thread Abbas Adel
Dears, I have a User bean with java.util.Set property. I create a struts form with a list to select multiple values from and then store them in the set. I am getting this exception: java.lang.IllegalArgumentException: Cannot invoke com.myapp.struts.User.setValues - argument type mismatch ---

RE: [collections] Generifying Collections

2006-10-25 Thread Jörg Schaible
Hi Kris, Kris Nuttycombe wrote on Tuesday, October 24, 2006 5:10 PM: (Compare this with the JDK where they had to jump through ridiculous hoops to make generics fully backwards-compatible, and created a half-arsed mess in the process...) This is the real problem. We must use a different

Re: [collections] Generifying Collections

2006-10-25 Thread James Carman
For someone who uses Commons Collections a lot in their applications, this is going to be quite a pain if I want to upgrade. Yes, I realize that there's such a thing as find and replace, but the fact that I have to do that if I want to upgrade is just a bother. That's my $0.02. On 10/25/06,

[jira] Created: (VFS-97) M$ FTP Virtual Folder support

2006-10-25 Thread Sergey Vladimirov (JIRA)
M$ FTP Virtual Folder support - Key: VFS-97 URL: http://issues.apache.org/jira/browse/VFS-97 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.1 Final Environment: current CVS version,

[jira] Updated: (VFS-97) M$ FTP Virtual Folder support

2006-10-25 Thread Sergey Vladimirov (JIRA)
[ http://issues.apache.org/jira/browse/VFS-97?page=all ] Sergey Vladimirov updated VFS-97: - Attachment: patch.txt patch-testcase.txt M$ FTP Virtual Folder support - Key: VFS-97

[jira] Commented: (VFS-97) M$ FTP Virtual Folder support

2006-10-25 Thread Sergey Vladimirov (JIRA)
[ http://issues.apache.org/jira/browse/VFS-97?page=comments#action_12444637 ] Sergey Vladimirov commented on VFS-97: -- In ideal case there is should be mount point of another fylesystem, i.e. virtual direcotry should be considered as root

RE: [collections] Generifying Collections

2006-10-25 Thread Jörg Schaible
James Carman wrote on Wednesday, October 25, 2006 11:50 AM: For someone who uses Commons Collections a lot in their applications, this is going to be quite a pain if I want to upgrade. Yes, I realize that there's such a thing as find and replace, but the fact that I have to do that if I

[jira] Updated: (VFS-90) RandomAccessFile backed by a RandomAccessContent instance

2006-10-25 Thread Elifarley Callado Coelho (JIRA)
[ http://issues.apache.org/jira/browse/VFS-90?page=all ] Elifarley Callado Coelho updated VFS-90: Attachment: RACRandomAccessFile.java.bz2 The attached class encapsulates a RandomAccessContent instance, allowing it to be used as a

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Colebourne
Stephen Colebourne wrote: Because commons isn't like other OSS projects. We can't go around changing our APIs freely, even between major versions. Its a simple case of us being at the bottom of the stack of jars. If we do change an API, any API then jar hell ensues because higher OSS

Re: [collections] Generifying Collections

2006-10-25 Thread Mario Ivankovits
Well, the number is dependent on the strategy we are trying to achieve: a) using '4' would indicate that every major version will have a new package name, but then you can't use a major version to just remove deprections (a compatible major version change) b) using '5' would indicate the

RE: [collections] Generifying Collections

2006-10-25 Thread Jörg Schaible
Mario Ivankovits wrote on Wednesday, October 25, 2006 3:03 PM: Well, the number is dependent on the strategy we are trying to achieve: a) using '4' would indicate that every major version will have a new package name, but then you can't use a major version to just remove deprections (a

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Colebourne
From: Mario Ivankovits [EMAIL PROTECTED] Well, the number is dependent on the strategy we are trying to achieve: a) using '4' would indicate that every major version will have a new package name, but then you can't use a major version to just remove deprections (a compatible major

[jira] Created: (CONFIGURATION-234) Documentation - Dependencies - DefaultConfigurationBuilder needs commons-jxpath

2006-10-25 Thread Jean KST (JIRA)
Documentation - Dependencies - DefaultConfigurationBuilder needs commons-jxpath --- Key: CONFIGURATION-234 URL: http://issues.apache.org/jira/browse/CONFIGURATION-234

Re: [collections] Generifying Collections

2006-10-25 Thread Kris Nuttycombe
Stephen Colebourne wrote: From: Mario Ivankovits [EMAIL PROTECTED] Well, the number is dependent on the strategy we are trying to achieve: a) using '4' would indicate that every major version will have a new package name, but then you can't use a major version to just remove deprections (a

Re: [collections] Generifying Collections

2006-10-25 Thread Niall Pemberton
On 10/21/06, Stephen Colebourne [EMAIL PROTECTED] wrote: Henri Yandell wrote: Why not just start a branch within Collections? I don't see why this is a new component, are we going to be advising people to use Collections 3.x on JDK 1.5+ for any reasons other than legacy or instability of

Re: [collections] Generifying Collections

2006-10-25 Thread James Carman
I don't like forking all of commons together. To say commons5-collections-1.0 doesn't work for me. Then, we have to get all of the commons projects to decide on fork points. Am I understanding (c) correctly? On 10/25/06, Kris Nuttycombe [EMAIL PROTECTED] wrote: Stephen Colebourne wrote:

Re: [collections] Generifying Collections

2006-10-25 Thread Henri Yandell
On 10/25/06, Stephen Colebourne [EMAIL PROTECTED] wrote: Well, the number is dependent on the strategy we are trying to achieve: a) using '4' would indicate that every major version will have a new package name, but then you can't use a major version to just remove deprections (a compatible

Re: [collections] Generifying Collections

2006-10-25 Thread Kris Nuttycombe
James Carman wrote: I don't like forking all of commons together. To say commons5-collections-1.0 doesn't work for me. Then, we have to get all of the commons projects to decide on fork points. Am I understanding (c) correctly? I don't think there has to be commons-wide fork at all. I just

Re: [collections] Generifying Collections

2006-10-25 Thread Mario Ivankovits
Perhaps you could expand on what the issues are with the JDK approach and why they're not desirable in Commons Collections - when I look at the differences for example between the generified and non-generified versions of java.util.List, I don't see the mess you describe. Yes, this is

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Colebourne
From: Niall Pemberton [EMAIL PROTECTED] From a simplistic user perspective seems to me that the compatibility achieved by the JDK is successful. I don't understand the intricacies required to generify a library, but if we could do the same wouldn't this be the best solution from a user

[jira] Commented: (LANG-284) TextTable for printing a fixedlength columns format text tables

2006-10-25 Thread David Leal (JIRA)
[ http://issues.apache.org/jira/browse/LANG-284?page=comments#action_12444696 ] David Leal commented on LANG-284: - Dear Henri, About your comment, that is why I have provided two methods, the method that returns String[][]

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Colebourne
From: Kris Nuttycombe [EMAIL PROTECTED] James Carman wrote: I don't like forking all of commons together. To say commons5-collections-1.0 doesn't work for me. Then, we have to get all of the commons projects to decide on fork points. Am I understanding (c) correctly? I don't think

Re: [collections] Generifying Collections

2006-10-25 Thread Will Pugh
I'm not sure we're optimizing for the right thing by changing the package names and creating parralel forks for Generic Collections. Generics have done a pretty good job of dealing with backwards compatibility. It feels like we will make the upgrade path for the vast majority of people more

Re: [collections] Generifying Collections

2006-10-25 Thread Will Pugh
Stephen Colebourne wrote: The problem is erasure. The JDK wipes all knowledge of the type that you connect to the collection. Thus ListString list = new ArrayList(); if (list instanceof ListInteger) { } fails to compile as the String type is erased. In order to preserve backwards

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Smith
I agree on the latter point - that JSE5 is in some ways a complete shift in Java paradigm. Whatever solution is chosen going forward, +1 for a cross-Commons approach... otherwise figuring out compatibility between Commons JARs will become even tougher. I dislike the idea of putting version

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Kestle
(Ok - how bizarre - I sent this mail yesterday (2 days?), but it went nowhere...) Definitely. It's built to be as api compatible as possible with collections, while upgrading to generics. It's also going through the process of making it easier to use from a generics side of things (doesn't

Re: [betwixt] What's needed for a 0.8 release ?

2006-10-25 Thread robert burrell donkin
On Mon, 2006-10-23 at 22:50 -0700, Thomas Dudziak wrote: On 10/23/06, robert burrell donkin [EMAIL PROTECTED] wrote: barring unforeseen events, i should have time on tuesday and wednesday. the infrastructure should all be back up by then. great, thanks! Let me know how I can help! there

Compiling Finder

2006-10-25 Thread Joshua ChaitinPollak
Hello, I'm having trouble understanding how to compile the commons-finder package. I've checked out commons-io and commons-finder from SVN, and I can compile io using ant, but finder doesn't have a build.xml. Pardon my stupidity, but I'm a maven newbie and I don't really understand the

Re: Compiling Finder

2006-10-25 Thread Henri Yandell
Hi Joshua, Maven's a very online tool - and the current snapshot repository is down (drive failure) so things are not as easy as they should be. To build things you want to: svn -N co http://svn.apache.org/repos/asf/jakarta/commons/trunks-sandbox/ commons-sandbox cd commons-sandbox mvn install

Re: [betwixt] What's needed for a 0.8 release ?

2006-10-25 Thread Henri Yandell
On 10/25/06, robert burrell donkin [EMAIL PROTECTED] wrote: On Mon, 2006-10-23 at 22:50 -0700, Thomas Dudziak wrote: On 10/23/06, robert burrell donkin [EMAIL PROTECTED] wrote: barring unforeseen events, i should have time on tuesday and wednesday. the infrastructure should all be back up

Re: [betwixt] What's needed for a 0.8 release ?

2006-10-25 Thread Thomas Dudziak
On 10/25/06, Henri Yandell [EMAIL PROTECTED] wrote: Delegate to get the ddlutils guys to do lots of it :) Funny. But seriously, I'll gladly help with any issues, just assign them to 0.8. cheers, Tom - To unsubscribe,

Re: Compiling Finder

2006-10-25 Thread Joshua ChaitinPollak
On Oct 25, 2006, at 4:48 PM, Henri Yandell wrote: What are you looking for in Finder by the way? The latest IO contains 'DirectoryWalker' which is the guts of finder, so it's possible that that might be all you want. I need to be able to filter a directory recursively by filename and

Re: Compiling Finder

2006-10-25 Thread Joshua ChaitinPollak
On Oct 25, 2006, at 4:48 PM, Henri Yandell wrote: svn -N co http://svn.apache.org/repos/asf/jakarta/commons/trunks- sandbox/ commons-sandbox cd commons-sandbox mvn install cd .. The SVN checkout works fine, but the mvn compile is giving me the same PSM 'org.apache.commons:commons' not

Re: Compiling Finder

2006-10-25 Thread Niall Pemberton
On 10/25/06, Joshua ChaitinPollak [EMAIL PROTECTED] wrote: On Oct 25, 2006, at 4:48 PM, Henri Yandell wrote: What are you looking for in Finder by the way? The latest IO contains 'DirectoryWalker' which is the guts of finder, so it's possible that that might be all you want. I need to be

Re: Compiling Finder

2006-10-25 Thread Henri Yandell
On 10/25/06, Joshua ChaitinPollak [EMAIL PROTECTED] wrote: On Oct 25, 2006, at 4:48 PM, Henri Yandell wrote: svn -N co http://svn.apache.org/repos/asf/jakarta/commons/trunks- sandbox/ commons-sandbox cd commons-sandbox mvn install cd .. The SVN checkout works fine, but the mvn compile

Re: Compiling Finder

2006-10-25 Thread Niall Pemberton
On 10/25/06, Joshua ChaitinPollak [EMAIL PROTECTED] wrote: On Oct 25, 2006, at 4:48 PM, Henri Yandell wrote: svn -N co http://svn.apache.org/repos/asf/jakarta/commons/trunks- sandbox/ commons-sandbox cd commons-sandbox mvn install cd .. The SVN checkout works fine, but the mvn compile

Re: Compiling Finder

2006-10-25 Thread Joshua ChaitinPollak
On Oct 25, 2006, at 6:04 PM, Niall Pemberton wrote: As Henry said, sounds like DirectoryWalker (in Commons IO) should meet your needs: http://tinyurl.com/y8wxcb Yup, I just build the commons-io jar and javadoc and was reading the examples, this should be perfect, thanks. Thanks for

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Colebourne
Will Pugh wrote: I'm not sure we're optimizing for the right thing by changing the package names and creating parralel forks for Generic Collections. Generics have done a pretty good job of dealing with backwards compatibility. It feels like we will make the upgrade path for the vast

Re: [collections] Generifying Collections

2006-10-25 Thread Niall Pemberton
On 10/25/06, Stephen Colebourne [EMAIL PROTECTED] wrote: From: Niall Pemberton [EMAIL PROTECTED] From a simplistic user perspective seems to me that the compatibility achieved by the JDK is successful. I don't understand the intricacies required to generify a library, but if we could do the

Re: [collections] Generifying Collections

2006-10-25 Thread Stephen Kestle
I for one would like to see the getInstance() methods renamed to getClassName(). With java 5 static importing, it enables concise construction/getting without specifying the class name. It's short, highly readable, and most of the time the generic types can be inferred. It's things like

Re: [collections] Generifying Collections

2006-10-25 Thread Rahul Akolkar
On 10/25/06, Niall Pemberton [EMAIL PROTECTED] wrote: snip/ Having said that, its not me thats going to be doing the work, but it does seem valuable to discuss port vs. refactor rather than refactor being a defacto decission and just having an argument on package names. snap/ :-) Its not

svn commit: r467859 - in /jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j: FileExtensions.java ScriptableList.java

2006-10-25 Thread martinc
Author: martinc Date: Wed Oct 25 21:27:59 2006 New Revision: 467859 URL: http://svn.apache.org/viewvc?view=revrev=467859 Log: Minor optimizations. Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java