Hi.

Whenever finalize() is called, this instance throws a Error
(Message.getInternalError(...)) when org.h2.engine.SessionRemote
uses org.h2.engine.Session as org.h2.engine.SessionInterface.

org.h2.engine.Session
> (snip)
> private boolean closed;
> (snip)
> public Session() {
>    // nothing to do  <- !!
> }
> (snip)
> protected void finalize() {
>     if (!SysProperties.runFinalize) {
>         return;
>     }
>     if (!closed) {
>         throw Message.getInternalError("not closed", stackTrace);
>     }
> }
> (snip)

When default constructor is called, please make "closed" true.


public Session() {
    closed = true;
}


Regards,
suga

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to