Re: Curly Generics Question - Update

2009-05-15 Thread Q
On 16/05/2009, at 12:07 PM, Mike Schrag wrote: I'm not sure this is really any better ... Fundamentally there's a ? in that param, and as a result, it's impossible to do a put in a typesafe way. You don't know what V is. I _think_ the signature as it is now is actually correct, but if you

Re: Curly Generics Question - Update

2009-05-15 Thread Anjo Krank
Am 16.05.2009 um 01:29 schrieb Mike Schrag: Map< String, List< String >> correctHeaders = new HashMap< String, List< String > >(); btw, this is what i was saying that the only typesafe way to do this is to copy the original headers -- so you would do new HashMap>(originalHeaders) and then

Re: Oracle driver...

2009-05-15 Thread Don Lindsay
The Oracle 9i drivers are no longer supported or patched.Oracle Support advises everyone to use the latest drivers, they are 100% backwards compatible (wry smile). For Java 1.5 use the OJDBC5.jar from 11i. For Java 1.6 use OJDBC6.jar. For java 1.4 use OJDBC14.jar, for java earlier th

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Mike Schrag
Thanks for letting us know. Works great. Very clean decompile. It is cool how it puts /* */ the the left of every code line too. btw, you can do this with jad, too, with the -lnc option (there's a setting in jadclipse for it too) ... ms ___ Do

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Ricardo J. Parada
Did you guys have to remove jadclipse ? Is there a conflict if one has jadclipse already installed? :-) On May 15, 2009, at 10:15 PM, Kieran Kelleher wrote: Thanks for letting us know. Works great. Very clean decompile. It is cool how it puts /* */ the the left of every code line too.

Re: Curly Generics Question - Update

2009-05-15 Thread Mike Schrag
I'm not sure this is really any better ... Fundamentally there's a ? in that param, and as a result, it's impossible to do a put in a typesafe way. You don't know what V is. I _think_ the signature as it is now is actually correct, but if you need to insert into that map inside createReque

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Kieran Kelleher
Thanks for letting us know. Works great. Very clean decompile. It is cool how it puts /* */ the the left of every code line too. On May 15, 2009, at 2:16 PM, Henrique Prange wrote: Hi list, Just to inform the Java Decompiler [1] plug-in for Eclipse is now available for Mac OS X. I hav

Re: Curly Generics Question - Update

2009-05-15 Thread Henrique Prange
Hi Mike, The following solution doesn't solve the unchecked type cast problem. But it respect PECS definition and accept a MapNSArray> as parameter. Do you think it is reasonable? public > WORequest treateRequest(String method, String url, String anHTTPVersion, Map someHeaders, NSData co

Re: Curly Generics Question - Update

2009-05-15 Thread Lachlan Deck
On 16/05/2009, at 10:03 AM, Chuck Hill wrote: On May 15, 2009, at 4:59 PM, Lachlan Deck wrote: Generics are great mostly - but there are times when it's just downright annoying :-). Sounds like Maven! :-P Touché ;-) But still lovin' your work as the unlikely ambassador, finding every

Re: Curly Generics Question - Update

2009-05-15 Thread Chuck Hill
On May 15, 2009, at 4:59 PM, Lachlan Deck wrote: Generics are great mostly - but there are times when it's just downright annoying :-). Sounds like Maven! :-P -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org

Re: Curly Generics Question - Update

2009-05-15 Thread Lachlan Deck
On 16/05/2009, at 9:27 AM, Mike Schrag wrote: public WORequest createRequest( String method, String aurl, String anHttpVersion, Map< String, ? extends List< String >> someHeaders,

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread David Holt
Works fine in Leopard, so I would guess it's a Tiger vs. Leopard issue. David On 15-May-09, at 2:24 PM, David Holt wrote: Does it work with Tiger? I can't get any classes to load. JD-GUI doesn't work with Tiger as far as I can tell, so it might be the same issue. David On 15-May-09, at 1

Re: Curly Generics Question - Update

2009-05-15 Thread Mike Schrag
Map< String, List< String >> correctHeaders = new HashMap< String, List< String > >(); btw, this is what i was saying that the only typesafe way to do this is to copy the original headers -- so you would do new HashMapList>(originalHeaders) and then you'd have a properly typesafe > that you

Re: Curly Generics Question - Update

2009-05-15 Thread Mike Schrag
public WORequest createRequest( String method, String aurl, String anHttpVersion, Map< String, ? extends List< String >> someHeaders, NSData content,

Re: Curly Generics Question - Update

2009-05-15 Thread Lachlan Deck
On 15/05/2009, at 10:48 PM, Mike Schrag wrote: Yeah this is a tricky one ... But you're right that the API is "? extends List" so you can pass in NSArray, which is a pretty common implementation. You also can't necessarily just assume people can declare their vars as List instead of NSAr

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Q
On 16/05/2009, at 6:51 AM, Chuck Hill wrote: On May 15, 2009, at 11:16 AM, Henrique Prange wrote: Hi list, Just to inform the Java Decompiler [1] plug-in for Eclipse is now available for Mac OS X. I have tried and it seems pretty good. [1]http://java.decompiler.free.fr/ Bye bye Jadc

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread David Holt
Does it work with Tiger? I can't get any classes to load. JD-GUI doesn't work with Tiger as far as I can tell, so it might be the same issue. David On 15-May-09, at 1:51 PM, Chuck Hill wrote: On May 15, 2009, at 11:16 AM, Henrique Prange wrote: Hi list, Just to inform the Java Decompi

Re: [OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Chuck Hill
On May 15, 2009, at 11:16 AM, Henrique Prange wrote: Hi list, Just to inform the Java Decompiler [1] plug-in for Eclipse is now available for Mac OS X. I have tried and it seems pretty good. [1]http://java.decompiler.free.fr/ Bye bye Jadclipse! Thanks for the heads up. Chuck -- Ch

Re: Constraint error when I don't think I should have one.

2009-05-15 Thread Chuck Hill
EOF can change the order that these are sent to the database. Is there any chance that the order that is causing the error is not the order you show in your message? Chuck On May 15, 2009, at 1:16 PM, Lon Varscsak wrote: Sorry, it's really not that confusing OrderHeader ->> OrderDeta

Re: Constraint error when I don't think I should have one.

2009-05-15 Thread Lon Varscsak
Sorry, it's really not that confusing OrderHeader ->> OrderDetailSales -> OrderDetailCost The values in the objects are fine, the pk's are fine, the insert order appears to be fine (OrderHeader then OrderDetailSales then OrderDetailCost) so the db constraint should be a problem,

Re: Constraint error when I don't think I should have one.

2009-05-15 Thread David Avendasora
On May 15, 2009, at 3:09 PM, Lon Varscsak wrote: This is a complete shot in the dark, but how does Sybase handle constraints within one transaction? Would the OrderHeader insert have to be committed before you can issue an INSERT into a related table? As long as it's in the transaction i

Re: Constraint error when I don't think I should have one.

2009-05-15 Thread Lon Varscsak
> > This is a complete shot in the dark, but how does Sybase handle constraints > within one transaction? Would the OrderHeader insert have to be committed > before you can issue an INSERT into a related table? > As long as it's in the transaction it should be okay. I'm wondering if it's not real

[OT] JD-Eclipse plug-in available for Mac OS X

2009-05-15 Thread Henrique Prange
Hi list, Just to inform the Java Decompiler [1] plug-in for Eclipse is now available for Mac OS X. I have tried and it seems pretty good. [1]http://java.decompiler.free.fr/ Cheers, Henrique ___ Do not post admin requests to the list. They will be

Re: Constraint error when I don't think I should have one.

2009-05-15 Thread David Avendasora
This is a complete shot in the dark, but how does Sybase handle constraints within one transaction? Would the OrderHeader insert have to be committed before you can issue an INSERT into a related table? If that's not it, what is the actual order_detlcost_ordhdr constraint? Is it a compound

Constraint error when I don't think I should have one.

2009-05-15 Thread Lon Varscsak
I have an object graph that's being saved and it seems okay. I have an OrderHeader object and an OrderDetailCost object where the foreign key for OrderDetailCost requires OrderHeader to exist. Here's the sql (snipped): May 15 10:05:00 DataBuilder[2500] DEBUG NSLog - === Begin Internal Transact

Re: [OT] Safari Problem

2009-05-15 Thread John Ours
Oh my! You're right Looks like I've got my work cut out for me today... On May 15, 2009, at 9:36 AM, Phillip Hutchings wrote: I suggest you check the source code of your front page, Safari is right. On Sat, May 16, 2009 at 01:31, John Ours wrote: OK, totally off topic and a shot in

Re: [OT] Safari Problem

2009-05-15 Thread Phillip Hutchings
I suggest you check the source code of your front page, Safari is right. On Sat, May 16, 2009 at 01:31, John Ours wrote: > OK, totally off topic and a shot in the dark, but I figured I'd ask some of > the most knowledgeable people I know... > > One of my sites (non-WO) is throwing a "Malicious Si

Re: Curly Generics Question - Update

2009-05-15 Thread Mike Schrag
well, no matter what you do, i think you're going to throw out type safety, so inside the method, you could just cast the headers to > : Map> badCast = (MapList>)headers; badCast.put("a", new LinkedList()); ms On May 15, 2009, at 8:56 AM, Jim Kinsey wrote: Hi Andrew, what the ca

Re: Curly Generics Question - Update

2009-05-15 Thread Jim Kinsey
Hi Andrew, what the calling method ought to be doing though is declaring the list it passes as Map> and hiding the concrete List implementation, negating the need for the wildcard. I tried it with a concrete implementation of List as well, but this also raised an error in a similar fashio

Re: Curly Generics Question - Update

2009-05-15 Thread Mike Schrag
Yeah this is a tricky one ... But you're right that the API is "? extends List" so you can pass in NSArray, which is a pretty common implementation. You also can't necessarily just assume people can declare their vars as List instead of NSArray because you don't know where that var came fr

Re: Curly Generics Question - Update

2009-05-15 Thread Andrew Lindesay
Hello Jim; Thanks for the reply. what the calling method ought to be doing though is declaring the list it passes as Map> and hiding the concrete List implementation, negating the need for the wildcard. I tried it with a concrete implementation of List as well, but this also raised an er

Re: Curly Generics Question - Update

2009-05-15 Thread Jim Kinsey
Hi Andrew, I find it odd that the map should have ? extends List as a parameter as the extension ought to be unnecessary (assuming callers are working to the List interface) - any List implementation with a String parameter fulfills List. I like generics too, but have come across similarl