Hi Again,
Please see below....
Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
'The test of a first-rate intelligence is the ability to hold two
opposed ideas in the mind at the same time and still be able to
function.'
-F.Scott Fitzgerald,
On 30/04/2008, at 3:05 PM, Chuck Hill wrote:
On Apr 29, 2008, at 6:25 PM, Owen McKerrow wrote:
Hi Art,
Thats sounds like word for word the practices that we follow.
Although I did just double check the code to make sure and I found
a couple of places which had manual lock/unlock's in them which
should not have.
From Session.java
public void awake()
{
ecLockManager().lock();
super.awake();
.....
public void sleep()
{
// Need to check as this gets called after terminate() when
logging out
synchronized (ecLockManager)
{
if (ecLockManager().isLocked())
{
ecLockManager().unlock();
}
}
super.sleep();
}
I wrap anything other than super.... in try...catch(Throwable),
just in case.
Now this may be a basic Java question and I tried to ask it
yesterday, but probably in a very poor fashion.
When your dealing with overriding a method and the original method
does not throw an exception, but you do in your over-ride you receive
a compile error something like....
"terminate() in Session cannot override terminate() in Session;
overridden method does not throw java.lang.Exception"
Which means that any exceptions that are thrown you need to deal
with them at this methods level, correct ? Or is there a way to throw
them without this message appearing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]