Hi,

> I wanted to avoid
> creating an interface SessionFactory, because I don't like the
> additional class / interface.

I thought it was so. :-)

Thank you for changing it.

Regards,
suga


On 12月6日, 午前12:59, "Thomas Mueller" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Thanks for your mail! You are right, this is a bug. I wanted to avoid
> creating an interface SessionFactory, because I don't like the
> additional class / interface. But a clean implementation is better, I
> will change it.
>
> Regards,
> Thomas
>
> On Thu, Dec 4, 2008 at 11:27 AM, suga <[EMAIL PROTECTED]> wrote:
>
> > 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