finalize() again

1999-01-05 Thread Manfred Hauswirth

Though this is not directly Java-Linux related, I think it is important to 
mention this on this mailing list, since it is important to distinguish Java 
problems from Java-on-Linux problems (if there are problems with Java on 
Linux, people tend to blame it on Linux ...):

The finalize() issue seems to cause lots of problems. It is not completely 
clear whether it works or not (IMHO not even for SUN themselves). According to 
my tests (SUN JDK 1.2 reference implementation - just to be completely on the 
safe side) it does not work satisfactory (at all ?).

I've tested finalize() with a server app - and no finalize() method gets 
called after I delete all by references to my test objects. A bug parade check 
gives contradicting results:

Bug Id 4148454 (State Closed, not a bug)

"The System.runFinalization method can only invoke the finalize methods of 
objects that that garbage collector has detected as being "finalizer 
reachable." Unfortunately, the conservative GC in the "classic" VM sometimes 
can't classify an object that way because there's a stray pointer to it 
somewhere in a native stack. This is most likely what is happening in the 
submitter's case; it works in JDK 1.1.5 out of sheer luck. The only way to 
guarantee that you've dropped all references to an object is to ensure that 
all threads that have ever referenced the object have terminated."

IMHO this is NOT satisfactory, especially if you write servers that heavily 
consume resources (like I do), because this actually means that resource 
consumption can possibly grow infinitely and the programmer cannot do anything 
against it.

Even more confusing is the follwoing statement (Bug Id 4102959, State Closed, 
will not be fixed) :

"According to the bugs database, this is only the third time that anyone's 
noticed that we've never implemented class finalization. --
   ^
   !
x@x 1/9/1998

Please see 4108421 "Remove class finalization from JLS". Because of that 
proposal, this bug will not be fixed. x@x 1998-04-07"

A search for 4108421 gives: "Results: No bug found"

Hm ?!

Any opinions ?

Manfred

-- 
   [EMAIL PROTECTED]
http://www.infosys.tuwien.ac.at/Staff/pooh/
---
"Growing old is mandatory. Growing up is optional."




Re: Fonts under 1.2 on Alpha-Linux

1999-02-11 Thread Manfred Hauswirth

[EMAIL PROTECTED] wrote:

 -> Try editing your properties file and replacing the font you
 -> listed with:
 -> -b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-iso8859-1

I had the same problem, so I edited my fonts.properties and exchanged the fonts with 
existing fonts of my X server (I double checked with xfontsel and whether I could run 
an xterm with the fonts I selected) . But unfortunately this did not help. Maybe I did 
something wrong, but I cannot think of what ...

I don't have much pressure to circumvent this problem though, because my applications 
do not crash ... they just do not look nice.

There is another problem I discovered when playing around with JDK1.2: obviously there 
is a bad interaction between Swing and ssh. When I run programs that use Swing on 
Solaris remotely from a Solaris box everything works fine (over ssh). When I run the 
very same application on the very same remote Solaris box and set the display to my 
Linux box I see an empty window (the same for HP-UX). If I do the same thing but do 
not run the application via ssh everything works (besides the font problem).

I could not figure out whether this is a ssh or JDK1.2 problem, but it's nasty (we use 
ssh for ALL our remote connections).

Manfred




Re: Fonts under 1.2 on Alpha-Linux

1999-02-11 Thread Manfred Hauswirth

Juergen Kreileder wrote:

 -> The problem is that the JDK tries to use the Xserver's shared memory
 -> extension but that only works locally. If you use lbxproxy even
 -> the Sun JDK will fail.
 -> 
 -> These problems are solved in the Blackdown JDK 1.2.

Guys - you are REALLY DOING AN EXCELLENT JOB !!

That's what I call quality !

Manfred





What happened to jdbc@java.blacjdown.org ?

1998-08-12 Thread Manfred Hauswirth

I was wondering what happened to [EMAIL PROTECTED] ? I unsubscribed from 
it some time ago because it worked on other projects. Now it seems to be no 
longer available. Can anyone help ?

Sorry for this off-topic question ... (boy, I really hope this is not an FAQ 
;-)

TIA,

Manfred




Re: JCE

1999-07-13 Thread Manfred Hauswirth

IAIK Java Crypto Software: http://jcewww.iaik.tu-graz.ac.at/

Manfred

Yohans Mendoza wrote:

 -> I want to implement some ecryption in an application I'm building, and
 -> when I tried to download the JCE, from the sun site, it told me that
 -> couldn't determine whether I was within the USA. 
 -> I've sent them a coulpe of mails, but no response whatsoever.
 -> Can somebody tall me an alternative to those classes?
-- 
Manfred Hauswirth, Technical University of Vienna, Distributed Systems Group
Snail: Argentinierstr. 8/184-1; A-1040 Vienna; Austria
Phone: +43 1 58801-18417
Fax:   +43 1 58801-18491
WWW:   http://www.infosys.tuwien.ac.at/Staff/pooh/



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]