[jira] Created: (HARMONY-46) Constructor java.io.File(String) creates object with incorrect name if one-letter name is followed by file separator char

2006-01-25 Thread Vladimir Ivanov (JIRA)
Constructor java.io.File(String) creates object with incorrect name if one-letter name is followed by file separator char -- Key: HARMONY-46 URL: http://issue

[jira] Commented: (HARMONY-45) Charset.isRegistered() method always return true

2006-01-25 Thread Vladimir Strigun (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-45?page=comments#action_12363988 ] Vladimir Strigun commented on HARMONY-45: - Patch is trivial (just check whether the name of charset starts with "x-"): 567c567 < return true; --- >

[jira] Commented: (HARMONY-45) Charset.isRegistered() method always return true

2006-01-25 Thread Vladimir Strigun (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-45?page=comments#action_12363987 ] Vladimir Strigun commented on HARMONY-45: - Testcase: package org.apache.harmony.tests.java.nio.charset; import java.nio.charset.Charset; import junit.framework.TestC

[jira] Created: (HARMONY-45) Charset.isRegistered() method always return true

2006-01-25 Thread Vladimir Strigun (JIRA)
Charset.isRegistered() method always return true Key: HARMONY-45 URL: http://issues.apache.org/jira/browse/HARMONY-45 Project: Harmony Type: Bug Components: Classlib Reporter: Vladimir Strigun Priority: Tri

[jira] Commented: (HARMONY-43) Performance enhancement for nio buffers bulk get/put methods

2006-01-25 Thread Tim Ellison (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-43?page=comments#action_12363982 ] Tim Ellison commented on HARMONY-43: Thanks Ricahrd, I'll review them now. > Performance enhancement for nio buffers bulk get/put methods > --

[jira] Updated: (HARMONY-43) Performance enhancement for nio buffers bulk get/put methods

2006-01-25 Thread Richard Liang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-43?page=all ] Richard Liang updated HARMONY-43: - Attachment: OtherBuffer_patch.txt Hello Tim, Here is the patch file for all other buffers (except for CharBuffer). The changes are just similar to those of C

Re: test suite correctness (was: Re: [classlib] Unit and performance testing)

2006-01-25 Thread Mikhail Loenko
On 1/25/06, Tim Ellison <[EMAIL PROTECTED]> wrote: > Mikhail Loenko wrote: > > So how will you distinguish if a properly written test passed > > or skipped? > > by testing the test suite as the tests are developed (i.e. running it in > different configurations and ensuring it does the right thing).

test suite correctness (was: Re: [classlib] Unit and performance testing)

2006-01-25 Thread Tim Ellison
Mikhail Loenko wrote: > So how will you distinguish if a properly written test passed > or skipped? by testing the test suite as the tests are developed (i.e. running it in different configurations and ensuring it does the right thing). (Of course, this is the recursive problem of determining te

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Rodrigo Kumpera
Isn't the idea to have a shared implementation that both FileChannel and java.io stream. Can't we just use some sort of reference counting to close it on finalize? On 1/25/06, Rodrigo Kumpera <[EMAIL PROTECTED]> wrote: > On 1/25/06, Paulex Yang <[EMAIL PROTECTED]> wrote: > > Agree, it should, but

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Rodrigo Kumpera
On 1/25/06, Paulex Yang <[EMAIL PROTECTED]> wrote: > Agree, it should, but currently not in Harmony. > > Rodrigo Kumpera wrote: > > Aren't channels supposed to hold references to the original streams? > > > > On 1/24/06, Paulex Yang <[EMAIL PROTECTED]> wrote: > > > >> The patch does work in some ca

[jira] Updated: (HARMONY-42) com.ibm.io.nio.FileChannel is not fully implemented

2006-01-25 Thread Paulex Yang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-42?page=all ] Paulex Yang updated HARMONY-42: --- Attachment: Harmony42-java_io_FileChannelFactory-patch.txt Harmony42-java_io_FileOutputStream-patch.txt A POC refactor patch for java.io.FileOutpu

[jira] Resolved: (HARMONY-38) com.ibm.platform.struct.AbstractMemorySpy doesn't actually autoFree native memory

2006-01-25 Thread Tim Ellison (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-38?page=all ] Tim Ellison resolved HARMONY-38: Resolution: Fixed Paulex, Fixed in NIO module at repo revision 372204 - com.ibm.platform.struct.AbstractMemorySpy.java - com.ibm.platform.struct.Runtime

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Paulex Yang
Agree, it should, but currently not in Harmony. Rodrigo Kumpera wrote: Aren't channels supposed to hold references to the original streams? On 1/24/06, Paulex Yang <[EMAIL PROTECTED]> wrote: The patch does work in some case, but it is not enough. First, when the channel is closed, the rele

[jira] Updated: (HARMONY-42) com.ibm.io.nio.FileChannel is not fully implemented

2006-01-25 Thread Paulex Yang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-42?page=all ] Paulex Yang updated HARMONY-42: --- Attachment: Harmony42-IFileSystem-patch.txt Harmony42-IMemorySystem-patch.txt Sorry that I didn't tell the whole story, the mmap related functions

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Rodrigo Kumpera
Aren't channels supposed to hold references to the original streams? On 1/24/06, Paulex Yang <[EMAIL PROTECTED]> wrote: > The patch does work in some case, but it is not enough. > > First, when the channel is closed, the relevant stream(FileInputStream, > FileOutputStream or RandomAccessFile) also

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Paulex Yang
Well, copy done ;-) Tim Ellison wrote: I accept your point. Since this comment was quite specific to the issue then it seemed fitting to keep that as a JIRA comment, if a jira comment opens up a wider consideration then I agree it should be responded to on the dev list. In this instance, Paule

[jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Paulex Yang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-40?page=comments#action_12363945 ] Paulex Yang commented on HARMONY-40: As Tim asked, copied from my comment on mailing list;) The patch does work in some case, but it is not enough. First, when the chann

[jira] Commented: (HARMONY-38) com.ibm.platform.struct.AbstractMemorySpy doesn't actually autoFree native memory

2006-01-25 Thread Paulex Yang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-38?page=comments#action_12363944 ] Paulex Yang commented on HARMONY-38: Sorry, there is a typo on my comment above, I meant the patches for AbstractMemorySpy and RuntimeMemorySpy, as what the attachments' n

[jira] Updated: (HARMONY-38) com.ibm.platform.struct.AbstractMemorySpy doesn't actually autoFree native memory

2006-01-25 Thread Paulex Yang (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-38?page=all ] Paulex Yang updated HARMONY-38: --- Attachment: Harmony38-AbstractMemorySpy-patch.txt Harmony38-RuntimeMemorySpy-patch.txt Thank you, Tim. Here goes the patches for PhantomReference

Re: [classlib] Unit and performance testing

2006-01-25 Thread Tim Ellison
+1 Anton Avtamonov wrote: > On 1/25/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: >> One more reason when logs are necessary: >> >> If testing is possible in some configurations only >> (like set of providers contains something or default encoding is ...), then >> 1) build failing in all different

Stealing JIRA issues

2006-01-25 Thread Tim Ellison
Geir, I assume you don't mind me stealing JIRA issues from you ;-) Are new issues being created as 'Unassigned'? just in case I accidentally swipe one that you really are working on. Regards, Tim Tim Ellison (JIRA) wrote: > [ http://issues.apache.org/jira/browse/HARMONY-20?page=all ] > >

Re: [classlib] Unit and performance testing

2006-01-25 Thread Mikhail Loenko
So how will you distinguish if a properly written test passed or skipped? Both of them will say 'passed' and you will never know either it really passed or you config is slightly wrong and the test was skipped Thanks, Mikhail On 1/25/06, Tim Ellison <[EMAIL PROTECTED]> wrote: > Mikhail Loenko wro

[jira] Assigned: (HARMONY-20) java.util.Collections rotate() gives incorrect result with distance parameter of min possible integer value

2006-01-25 Thread Tim Ellison (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-20?page=all ] Tim Ellison reassigned HARMONY-20: -- Assign To: Tim Ellison (was: Geir Magnusson Jr) > java.util.Collections rotate() gives incorrect result with distance parameter > of min possible integer

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Tim Ellison
I accept your point. Since this comment was quite specific to the issue then it seemed fitting to keep that as a JIRA comment, if a jira comment opens up a wider consideration then I agree it should be responded to on the dev list. In this instance, Paulex has a good point about why Vladimir's su

Re: [classlib] Unit and performance testing

2006-01-25 Thread Anton Avtamonov
On 1/25/06, Mikhail Loenko <[EMAIL PROTECTED]> wrote: > One more reason when logs are necessary: > > If testing is possible in some configurations only > (like set of providers contains something or default encoding is ...), then > 1) build failing in all different configs would be annoying > 2) On

Re: [classlib] Unit and performance testing

2006-01-25 Thread Tim Ellison
Mikhail Loenko wrote: > One more reason when logs are necessary: > > If testing is possible in some configurations only > (like set of providers contains something or default encoding is ...), then > 1) build failing in all different configs would be annoying huh? if you can determine that the te

Re: [classlib] Unit and performance testing

2006-01-25 Thread Mikhail Loenko
One more reason when logs are necessary: If testing is possible in some configurations only (like set of providers contains something or default encoding is ...), then 1) build failing in all different configs would be annoying 2) One has to be able to scan logs for warnings to verify that functio

Re: [jira] Updated: (HARMONY-44) some security2 unit tests log redundant information

2006-01-25 Thread Geir Magnusson Jr
cool - thanks Mikhail Loenko (JIRA) wrote: [ http://issues.apache.org/jira/browse/HARMONY-44?page=all ] Mikhail Loenko updated HARMONY-44: -- Attachment: patch.txt The patch that removes 'logln("==...' from security2 unit tests some security2 unit

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Geir Magnusson Jr
Interesting problem. I do agree with you - keeping it in one place is a good thing, and JIRA is that place. However, I always find it hard to read jira comment streams - they don't feel the same as discussion in regular dev@ mail. I have no idea what to do about this. I've thought about doi

[jira] Updated: (HARMONY-31) Move peformance timing of unit tests into a decorator class.

2006-01-25 Thread Geir Magnusson Jr (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-31?page=all ] Geir Magnusson Jr updated HARMONY-31: - Component: Classlib > Move peformance timing of unit tests into a decorator class. > > >

[jira] Assigned: (HARMONY-39) Contribution of beans, regex and math classlibrary code

2006-01-25 Thread Geir Magnusson Jr (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-39?page=all ] Geir Magnusson Jr reassigned HARMONY-39: Assign To: Geir Magnusson Jr > Contribution of beans, regex and math classlibrary code > ---

[jira] Assigned: (HARMONY-44) some security2 unit tests log redundant information

2006-01-25 Thread Geir Magnusson Jr (JIRA)
[ http://issues.apache.org/jira/browse/HARMONY-44?page=all ] Geir Magnusson Jr reassigned HARMONY-44: Assign To: Geir Magnusson Jr > some security2 unit tests log redundant information > --- > >

Re: [jira] Commented: (HARMONY-40) FileChannel assotiated with FileOutputStream not closed after closing output stream

2006-01-25 Thread Tim Ellison
Paulex, IMHO This would be better as a comment on the JIRA issue itself, then we can keep them all together. Would you like to repeat yourself there ;-) Thanks Tim Paulex Yang wrote: > The patch does work in some case, but it is not enough. > > First, when the channel is closed, the relevant s

Re: [classlib] Unit and performance testing

2006-01-25 Thread Anton Avtamonov
On 1/25/06, Thorbjørn Ravn Andersen <[EMAIL PROTECTED]> wrote: > Mikhail Loenko wrote: > > > fail() is not always convinient, for example, how would you print > > > >stack trace to fail()? Meanwhile stacktrace is most often enough > > > > > If you need a stacktrace, why not just throw a RuntimeExce

Re: [classlib] Unit and performance testing

2006-01-25 Thread Mikhail Loenko
Well if we need just a single stacktrace per test it would work. Consider an example: we need to make several attempts and fail only if all of them fail. For example if we want try to create an object whose constructor takes a name of a security algorithm as an argument. We do not know before whic

Re: [classlib] Unit and performance testing

2006-01-25 Thread Thorbjørn Ravn Andersen
Mikhail Loenko wrote: fail() is not always convinient, for example, how would you print stack trace to fail()? Meanwhile stacktrace is most often enough If you need a stacktrace, why not just throw a RuntimeException at that point? JUnit will then include the stack trace in the report. -