[4278] in java-interest

home help back first fref pref prev next nref lref last post

java-interest-digest V1 #240

daemon@ATHENA.MIT.EDU (java.sun.com!owner-java-interest-d)
Fri Dec 15 13:26:40 1995

From: java.sun.com!owner-java-interest-digest@asoft.msk.su
Date: Mon, 30 Oct 1995 23:30:13 -0800
To: java-interest-digest@java.sun.com
Reply-To: java.sun.com!java-interest@asoft.msk.su

java-interest-digest      Tuesday, 31 October 1995      Volume 01 : Number 240

In this issue:

 	Re: method dispatching bug (or a feature :-()
 	Re: Select System call
 	Re: Select System call
 	Re: java menu events
 	dynamic method invocation -- any more discussion?
 	Re: [Q]:repaint() not calling update(..)?
 	Native methods as static method
 	Java and molecular biology and genome research
 	applet's wallpaper
 	images on awt Panel
 	compiling in windows95
 	Re: compiling in windows95
 	Include Files from Alpha-2 Release
 	Re: Finalize()
 	Re: dispose() on GC's [was Re: Finalize() ]
 	handleEvent()
 	Re: object-oriented feature not supported: why??
 	Re: Using sockets (Specif: NS2.0 Beta netscape.applet.SecurityManager) 
 	Re: netscape2.0b1J (java errors) 
 	Re: dynamic method invocation -- any more discussion?
 	New Alpha Version
 	Read from Applet
 	Re: Win95 Compile: Use 32 bit editor
 	Re: dynamic method invocation -- any more discussion?
 	Re: java-interest-digest V1 #235
 	VR Java ?

----------------------------------------------------------------------

From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
Date: Sun, 29 Oct 1995 23:32:40 -0800 (PST)
Subject: Re: method dispatching bug (or a feature :-()

Hi Andruid,

> java.lang.AbstractMethodError minus

This exception only happens if you manage to
directly invoke an abstract method. The only way
to do this is by calling super.minus() from a
subclass.

Have fun,

	Arthur van Hoff 

------------------------------

From: Motohiro Suzuki <motohiro@nwk.cl.nec.co.jp>
Date: Mon, 30 Oct 1995 17:18:12 +0900
Subject: Re: Select System call

Thank you for telling me about "select system call".

 By the way, I have another question.

・瘢雹I want to catch the signal issued by system (OS). Possible?

If you have the information about it, please tell me.

****************************************
	C&C Labs. NEC Corp.
	   Motohiro SUZUKI
    E-mail: motohiro@nwk.cl.nec.co.jp
    Tel   : +81-44-856-2314
    Fax   : +81-44-856-2229
****************************************


------------------------------

From: Motohiro Suzuki <motohiro@nwk.cl.nec.co.jp>
Date: Mon, 30 Oct 1995 20:02:38 +0900
Subject: Re: Select System call

hi,

> > + I want to do the access control of the application by host or user.
> I don't understand that statement.
Sorry, I didn't explain enough. It means that if I accept the accesses
from several host, I want to control them by host name(or IP address), 
which accesses from, or by user name (something like user ID). 

My wish is to know the securiry mechanism of Java Language, especially 
access control. And, I want to know that I can do access control on 
application level without depending on protocols(such as ftp, nntp, and http).

****************************************
	C&C Labs. NEC Corp.
	   Motohiro SUZUKI
    E-mail: motohiro@nwk.cl.nec.co.jp
    Tel   : +81-44-856-2314
    Fax   : +81-44-856-2229
****************************************


------------------------------

From: rvhoof@nynexst.com (Ron van Hoof)
Date: Mon, 30 Oct 1995 09:14:42 -0500
Subject: Re: java menu events

Hoi Jim, 

	It's very simple. You have to do the same thing as with
buttons. Just match the string text.

	if ("New".equals(arg)) {
		System.out.println("Creating new system!");
	}
	else if ("Open".equals(arg)) {
		System.out.println("Opening system!");
	}
	...

Ron

> 
> In a java application, how do you capture menu events?
> Below is an application with a menu bar and a couple
> of menus. There are also a couple of buttons
> in the app. The "action()" routine captures the events
> from buttons in the app, but not the menus.
> 
> Anybody have sample application code that deals
> with events from menubar menus?
> 	-Jim
> 
> 
> // create menubar with two menus
> 
> import java.awt.*;
> import java.applet.Applet;
> 
> public class menuBarTest extends Applet 
>   {
> 
>   public menuBarTest() 
>     {
>     setLayout(new BorderLayout());
>     Panel p = new Panel();
>     p.setLayout(new FlowLayout());
>     add("South", p);
>     p.add(new Button("quit"));
>     p.add(new Button("Doit"));
> 
>     }
> 
>   public boolean action(Event evt, Object arg) 
>     {
>     System.out.println("Event detected: " + arg); 
>     if ("quit".equals(arg))
>       {
>       System.exit(0);
>       }
>     if ("Doit".equals(arg))
>       {
>       }
>     return true;
>     }
>   public static void main(String args[]) 
>     {
>     Frame f = new Frame("menuBarTest");
>     menuBarTest menuBarTest_test = new menuBarTest();
>     menuBarTest_test.init();
>     menuBarTest_test.start();
> 
>     MenuBar mb = new MenuBar();
>     Menu h = new Menu("Help");
>     h.add("General Help");
>     h.add("Even More Help");
>     h.add("Extra Special Help");
>     mb.add(h);
>     mb.setHelpMenu(h);
> 
>     Menu h2 = new Menu("File");
>     h2.add("New");
>     h2.add("Open");
>     h2.add("Close");
>     h2.add("Save");
>     h2.add("Exit");
>     mb.add(h2);
>     f.setMenuBar(mb);
> 
> 
>     f.add("Center", menuBarTest_test);
>     f.resize(300, 300);
>     f.show();
>     }
>   }
> -
> This message was sent to the java-interest mailing list
> Info: send 'help' to java-interest-request@java.sun.com
> 


- ---------------------------------------------------------------------
Ron van Hoof                         NYNEX Science & Technology, Inc.
Member of Technical Staff            Research & Development
                                     Work Systems Design Group
E-Mail: rvhoof@nynexst.com	     400 Westchester Avenue, Rm 115a
Voice:  (914) 644-2046 		     White Plains, NY 10604
Fax:    (914) 949-9566 		     USA
- ---------------------------------------------------------------------

------------------------------

From: Chris Cuilla <ccuilla@m-space.com>
Date: Mon, 30 Oct 95 09:05:25 -0700
Subject: dynamic method invocation -- any more discussion?

I'm wondering if there has been any more movement or discussion of including  
dynamic method invocation (a la Objective-C and Smalltalk) in Java.  This  
simpl addition is the only glaring thing I see as a drawback to to Java at  
this point (well aside from that C++ syntax ;-)

It seems that anyone who has use this feature would agree to the overwhelming  
benefits it provides.  Particularly in terms of enabling even MORE dynamic  
applications and applets.

- ---
Chris Cuilla

/-----------------------------------------------------------------------------\
| ccuilla@m-space.com (NeXT & MIME mail accepted)                             |
|                                                                             |
| "If you're not riding the steamroller, you're part of the asphalt."         |
\-----------------------------------------------------------------------------/

------------------------------

From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
Date: Mon, 30 Oct 1995 08:21:00 -0800 (PST)
Subject: Re: [Q]:repaint() not calling update(..)?

Hi Lee,

> I am having some problem with repaint() in my java applet
> program. If I understand correctly, repaint() is suppose to
> call update(..), however, the update(..) in my applet never
> gets called.

The reason that update() isn't called is that you are using
100% of the CPU calling repaint(). update() is only called when
the system is not busy. Try putting a sleep() in your for loop.

Have fun,

	Arthur van Hoff

> Below is my sample applet:
> 
> 
> import java.awt.*;
> import java.applet.Applet;
> import java.lang.*;
> 
> public class Fract extends Applet implements Runnable{
> 
>     Thread p;
> 
>     public void run(){
> 	for(;;){
> 	    System.out.println("in run()");
> 	    repaint();
> 	}
>     }
> 
>     public void init(){
> 	resize(500,500);
>     }
> 
>     public void start(){
>         p = new Thread(this);
> 	p.start();
>     }
> 
>     public void update(Graphics g){
> 	System.out.println("In update");
>     }
> }
> 
> 
> Anybody know what is wrong with the above code, or, how can I have
> repaint() to call update().
> 
> Thanks for any help.
> 
> -- Lee, Fook Heng
> -
> This message was sent to the hotjava-interest mailing list
> Info: send 'help' to hotjava-interest-request@java.sun.com
> 

------------------------------

From: bergold@igd.fhg.de
Date: Mon, 30 Oct 95 17:54:32 +0100
Subject: Native methods as static method

Hi!

Is it possible to declare a native method as static e.g. static native void f() ?
I got no compile error, but during the execution I got an access violation
using the alpha 1.3 release for Windiows NT. There is no problem, when I 
declare the function as follows:
  native void f()

Thanks for your help.

Michael Bergold

------------------------------

From: markg@hal.com (Mark Gaither)
Date: Mon, 30 Oct 1995 11:33:24 -0600 (CST)
Subject: Java and molecular biology and genome research

>>>>> Forwarded message from "Robert J. Robbins" <rrobbins@aphid.fhcrc.org>

My name is Bob Robbins and I am organizing a session on "New Horizons in
Biological Databases" for a scientific meeting to be held in December in
San Antonio.  The session will include a mixture of presentations, with 
some discussing fairly deep infrastructure needs for the development of 
an interacting federation of data resources, and with others presenting 
some interesting and novel ways of delivering scientific information.

The overall meeting chairmen have indicated that they would, if possible,
like to see a presentation that involves the use of Sun's Hot Java to
deliver biological or other scientific information.  In my area of
personal interest, molecular biology and genome research, there are no
significant java projects yet on-line.  One of the meeting chairs, Jack
Lancaster, of the Research Imaging Center in san Antonio, provided me with
your name, indicating that the local Sun rep spoke highly of you and you
knowledge of java.  

Jack suggested that perhaps you could point me toward java projects that
would be relevant for our program.  If you would be interested in helping 
me locate appropriate projects, drop me a line and let me know when a 
phone call would be convenient.  I've got a few meetings scattered 
throughout tomorrow and one coming up right now, so more than one time 
might help.  Of course, I use email a lot, so if you'd prefer to handle 
this via email, that's fine, too.

Bob


<<  End forwarded message

------------------------------

From: sandro@gozer.the-coast.com (Sandro Santilli)
Date: Mon, 30 Oct 1995 12:33:44 -0500
Subject: applet's wallpaper

I'm trying to make a web page using a lot of applet. I'd like to have like an animated wallpaper that users can keep open having the info changing on the screen. The problem is that I cannot use table tags, so I don't know how to dispose the applet on the screen to cover it all!  Can anyone help me?

thanks, Sandro 

------------------------------

From: jsanders@excelsior-73.Eng.Sun.COM (Jim Sanders)
Date: Mon, 30 Oct 1995 09:36:50 -0800
Subject: images on awt Panel

Anyone know how to put
a gif image on a Panel
of a java application?

Along the same lines, anybody know how
you substitute a gif image
for a button so that the gif
becomes a live button?

Most window toolkits
let you substitute an image
for a label or a button, but how it's
handled in java's awt toolkit
isn't clear to me. 

	-Jim


  

------------------------------

From: papyrus@name.net (Lou Mersereau)
Date: Mon, 30 Oct 1995 13:51:54 -0400
Subject: compiling in windows95

I can't seem to compile a Java applet in the DOS command prompt under
Windows95. The problem seems to be that the the source filename is required
to have the ".java" extension, and the filename under DOS can't have a
four-character extension. The Windows95 long filenames are renamed in the
DOS command line shell and the javac program can no longer find it under
its original name.

Any enemy of anemones is an enemy of mine.



------------------------------

From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
Date: Mon, 30 Oct 1995 10:34:10 -0800
Subject: Re: compiling in windows95

FAQ writers: this is a recurring question -- can you add it to your lists?

>  I can't seem to compile a Java applet in the DOS command prompt under
>  Windows95. The problem seems to be that the the source filename is required
>  to have the ".java" extension, and the filename under DOS can't have a
>  four-character extension. The Windows95 long filenames are renamed in the
>  DOS command line shell and the javac program can no longer find it under
>  its original name.

We build under both Win95 and NT, using long filenames.  If the long
filename has been preserved (run DIR without parameters and check the
right-most column), javac will compile it just fine using the long
filename (DON'T use the shortened name).  If your editor or other old
Windows tool truncates the name, however, MOVE it in the shell from
the shortened name to the long name.  Consider using WordPad or the
shareware TextPad editors, both of which support long filenames, if
your editor is at fault.

The current javac has some bugs with case-sensitivity in filenames
(we were case-sensitive where we shouldn't have been), which we've 
fixed for the upcoming release.  In the meantime, type in the file
name with matching case (i.e., if the file is MyClassName.java, 
type that instead of myclassname.java).  It's easier to do this if
you use either a make or batch file.

Tom Ball
Java Products Group

------------------------------

From: jonathan@athenanow.com (Jonathan Taylor)
Date: Mon, 30 Oct 1995 14:34:30 -0400
Subject: Include Files from Alpha-2 Release

bergold@igd.fhg.de graciously pointed out that I can find oobj_md.h and
typedefs_md.h in the Alpha-2 NT release (they seem to be missing from
Alpha-3). However, I can't locate this archive on the FTP servers.

Does anyone know where I can find Alpha-2 NT?

Thanks.


------------------------------

From: Michael Lorton <mlorton@eshop.com>
Date: Mon, 30 Oct 1995 11:39:12 -0800
Subject: Re: Finalize()

> > The final few sentences is this footnote are somewhat alarming.   
> > How can finalize() be used for ANYTHING if it isn't reliably called?
> 
> Since the finalize() method is called from the garbage collector and
> since the actions and timing of the garbage collector or implementation
> dependent, you shouldn't rely on any consistency from it to invoke
> your finalize methods.

So we can rest assured that finalize() *will* be called before the
garbage collector collects the object (which may be useful).  (I am
guessing here; somebody check me.) Is *everything* collected when the
process terminates?

M.


------------------------------

From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Mon, 30 Oct 1995 11:53:09 -0800
Subject: Re: dispose() on GC's [was Re: Finalize() ]

> i have been wondering: if i call paint myself, by doing getGraphics()
> on something derived form Component, should a do a dispose() or
> finalize() on that GC when paint returns?  My interpretation of your
> comments is that that might be a good thing to do.

It would be better to use the "repaint()" method to cause your components
to repaint, but the answer to your question is yes, you should manually
dispose() the Graphics objects when you are done with them to free up the
system resources as soon as possible.  The finalize() method is only a
backup in case you forget...

				...jim

------------------------------

From: Christopher Wang <cwang@cs.columbia.edu>
Date: Mon, 30 Oct 1995 16:22:23 -0500
Subject: handleEvent()

Hi, I'm trying to implement my own event handler under Java alpha for
Solaris but it doesn't seem to be using my handEvent(Event) routine.
Does anyone have experience with this?

On an unrelated note, I can't seem to get native methods working on 
the same platform. It can't find the System.loadLibrary routine (which
isn't in the API but I assume must exist, also mouseDown also isn't in the
Alpha API but does exist, is there more reliable documentation somewhere?) 

------------------------------

From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
Date: Mon, 30 Oct 1995 14:45:21 -0800
Subject: Re: object-oriented feature not supported: why??

Hi Andruid,

> Then if Java is an object-oriented language, you'd like to be able to say
> 
> 	ObjectX	newObjectX = new objectX.getClass()(objectX);
> 
> However, the compiler says
> 
> 	'new(...)' not supported.
> 
> Are there any plans to support this kind of construction??

Class Object has copy(Object o) and clone() methods.

				...jim

------------------------------

From: Mike Fletcher <fletch@ain.bls.com>
Date: Mon, 30 Oct 1995 17:41:58 -0500
Subject: Re: Using sockets (Specif: NS2.0 Beta netscape.applet.SecurityManager) 

	Well, good and bad news.  I got some info back from someone
at Netscape.  He says that no, there's not any way around it.  And
don't count on it being configurable in release 2.0 either.  Guess
we'll just wait and see . . . :/

	The good news (of a sort) is that if you've got the JDK from
sun you can write socket using apps with it (since there's no 
SecurityManager object blocking things).  It took me <30 minutes to 
get a multithreaded server that spit back whatever you typed at
it coded up and working.  That's counting brushing up on making
Runnable classes.

	Now, does anyone know how to get the equivalent of the
C statement below in Java:

	sprintf( str, "%.4d", int_variable );	

- ---
Fletch                                                     __`'/|
fletch@ain.bls.com  "Lisa, in this house we obey the        o.O'    ______
404 713-0414(w)	     Laws of Thermodynamics!" H. Simpson   =(___)= -| Ack. |
404 315-7264(h) PGP Print: 8D8736A8FC59B2E6 8E675B341E378E43  U      ------



------------------------------

From: ser@jersey.uoregon.edu
Date: Mon, 30 Oct 1995 16:05:00 -0800
Subject: Re: netscape2.0b1J (java errors) 

> Now I'm really confused.
> How do I run a netscape java browser without having netscape running?

You didn't say you were running Netscape as your Java browser; since Netscape 
support of Java is so flakey, I assumed that you were running HotJava.

I don't know if its worth asking about problems you encounter with Netscape in 
this group since Netscape 2 itself is very buggy.

- --- SER


------------------------------

From: "Steve V. Yalovitser" <root@cyberpunk.com>
Date: Mon, 30 Oct 1995 19:09:59 +0800 (EST)
Subject: Re: dynamic method invocation -- any more discussion?

Dynamic method invocation was relatively simple to hack up for the simple
case. There was an old mail by Tom Ball or Arthur which gave a blueprint. It isnt
really correct but should give a start:

From daemon@java.sun.com Tue Sep 26 09:37 EDT 1995
Received: from java.Sun.COM by sensenet.cyberpunk.com with SMTP
	(1.38.193.4/16.2) id AA11084; Tue, 26 Sep 1995 09:37:07 -0400
Return-Path: <daemon@java.sun.com>
Received: (from daemon@localhost) by java.sun.com (8.6.12/8.6.12) id CAA02579
for java-interest-recipients; Tue, 26 Sep 1995 02:24:23 -0700
Received: (from majordom@localhost) by java.sun.com (8.6.12/8.6.12) id
CAA02572 for java-interest-outgoing; Tue, 26 Sep 1995 02:24:20 -0700
Date: Mon, 25 Sep 1995 10:26:28 -0700
From: cmcmanis@scndprsn.Eng.Sun.COM (Chuck McManis)
Message-Id: <9509251726.AA16926@pepper.Eng.Sun.COM>
To: gbolcer@liege.ICS.UCI.EDU, mikec@metronet.com
Subject: Re: Dynamic Loading of Classes
Cc: java-interest@java.Eng.Sun.COM
X-Sun-Charset: US-ASCII
Sender: owner-java-interest@java.sun.com
Precedence: bulk
X-Info: To unsubscribe, send 'unsubscribe' to
java-interest-request@java.sun.com
Status: RO

>In article  Gregory Alan Bolcer <gbolcer@liege.ICS.UCI.EDU> writes:
>>    I've programmed myself into a corner, and I am seeking advice
>>on the following problem.  I have a Java unix process that is
>>maintaining a dynamically changeable object model (categories) 
>>built on top of Java.  The methods to these categories can be 
>>dynamically changed at runtime and are implemented as Java classes
>>within a file directory.  

Mike Responds...

>Sounds cool however, Java is not a dynamic language in the sense that 
>Smalltalk is a dynamic language. This works it self back to the request for 
>perform: capabilities ala Smalltalk. The reason for no perform: (as it was 
>explained to me) is that it opens a big security hole. For example, a Nasty 
>Old Java App (NOJA) could evoke the method "MySystem.sendUglyMailToMyBoss"
if
>a class with such an interface exists. I guess that the NOJA could scan the 
>class which it finds on a given workstation and try things at random causing 
>all sorts of havoc. 

Mike is correct, however if your already running UNIX processes then
you are not an applet and just a Java ap. Consider writing your own
"perform" class, to do some (most?) of it is fairly trivial.

NOTES: THE FOLLOWING CODE IS WRITTEN "on the fly" And probably won't
	even compile, much less work, however it should provide sufficient
	information to do what you want.

Write a class "DynamicMethodInvoker" which is defined something like:
class DynamicMethodInvoker {
    static {System.loadLibrary("dynamix");}

    private native Object executeDynamicMethod(Object o, String meth,
					String sig, Object args[]);

    public Object doDynamicMethod(Object o, String meth, String sig, 
		Object args[]) {
	/* Implement some security policy here. Maybe call SecurityManger
	   canInvoke or something you make up, what ever you do, don't
	   let applets call this. */
	SecurityManager.mySecurityPolicy();
	return (executeDynamicMethod(o,meth, sig, args));
    }
}

And in the C code write:

int parseSignature(char *sig) {
    static char *cursig;
    if (sig != NULL) {
	cursig = sig;	/* set the signature */
	cursig = strchar(sig, '['); /* find the arguments */
	return 0;
    }
    return (getnextparameter(cursig)); /* return next argument type
				          (int, object ref, etc) */
}

int sigComponents(char *sig) {
	/* return number of arguments to the method */
}

ClassDynamicMethodInvoker_executeDynamicMethod(HObject *this,
	HObject *that, HString *meth, HString *sig, HArrayOfObject *args) {
	long res;
	
	switch (sigComponents(sig)) {
	case 0:
		res = java_execute_dynamic_method(getEE(), unhand (that),
			unhand(meth), unhand(sig));
		break;

	case 1:
		parseSignature(sig);
		res = java_execute_dynamic_method(getEE(), unhand (that),
			unhand(meth), unhand(sig),getnextParameter(sig));
		break;
	...
	/* repeat for as many arguments as you would like. */

	}
	type = parsesignatureResult(sig);
	/* this should simply parse the return type. */
	/* if it is a simple type (int, long, etc) then call
	   execute_java_constructor() on the result with the
	   simple type's class
	   (ie execute_java_constructor(..,"Integer", res,...)
	*/
	return res;
}

Note that amateur spelunkers should not try to do this, it will just
confuse you.

- --Chuck
- -
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com


------------------------------

From: rafael@pse.res.titech.ac.jp (Batres)
Date: Tue, 31 Oct 1995 10:04:21 +0900
Subject: New Alpha Version

Hi!

I am having problems trying to find how to substitue the methods (even the
inherited) of the Alpha class net.NetworkServer and net.NetworkClient,
does anyone know how to emulate the functions of this class in the
pre-beta environment? 

There are two classes with the same name in the sun package but both without
the appropiate documentation is not possible to know the method description,
besides using this classes we could lose portability.

I will appreciate any help. 
				Thanks,


				Rafael
				rafael@pse.res.titech.ac.jp


------------------------------

From: Richard Wahongan <n1061925@dodo.fit.qut.edu.au>
Date: Tue, 31 Oct 1995 14:06:00 +1000 (EST)
Subject: Read from Applet

How can an applet interactively get read a string from the user ?
Thanks for any answer !!

  -- Rick --
  o----------------------+------------------------------------------------o
  (    Richard Wahongan  |      Email : n1061925@dodo.fit.qut.edu.au      )
  o----------------------+------------------------------------------------o  
  (              http://www.fit.qut.edu.au/Student/~n1061925/             ) 
  o-----------------------------------------------------------------------o


------------------------------

From: Tony Healy <thealy@magna.com.au>
Date: Tue, 31 Oct 1995 16:00:09 +1100
Subject: Re: Win95 Compile: Use 32 bit editor

Re compiling under Win95 DOS, encountering problems related to java
filenames being too long for DOS:

I compile *.java files under Win95 DOS with no complaints. I use the Visual
C++ for NT editor to edit and save my files, which preserves long file
names. Good luck.

Tony Healy
Silicon CHiC
Sydney, Australia






------------------------------

From: Pat Niemeyer <pat@icon-stl.net>
Date: Mon, 30 Oct 1995 23:17:22 -0600 (CST)
Subject: Re: dynamic method invocation -- any more discussion?

On Mon, 30 Oct 1995, Steve V. Yalovitser wrote:

> Dynamic method invocation was relatively simple to hack up for the simple
> case. There was an old mail by Tom Ball or Arthur which gave a blueprint. It isnt
> really correct but should give a start:

[ something deleted]

> Mike Responds...
> 
> >Sounds cool however, Java is not a dynamic language in the sense that 
> >Smalltalk is a dynamic language. This works it self back to the request for 
> >perform: capabilities ala Smalltalk. The reason for no perform: (as it was 
> >explained to me) is that it opens a big security hole. For example, a Nasty 
> >Old Java App (NOJA) could evoke the method "MySystem.sendUglyMailToMyBoss"
> if
> >a class with such an interface exists. I guess that the NOJA could scan the 
> >class which it finds on a given workstation and try things at random causing 
> >all sorts of havoc. 

I don't think this is the rationale behind no method pointers.  I've been 
trying to dig through my mail and find the one authoritative comment on this
that I remember, but I seem to have lost it...

I thought that the response was that the Java people thought long and hard
about method pointers and ultimately there were issues involving "queuing"
of method invocations or something...  There was even a mention of dredging
up some old mail on the subject, but it never surfaced.

I don't think that I've heard any real security issues involving dynamic
method selection.  Run time checks are there anyway...

Anyone have that mail or did I just dream it?


Pat


------------------------------

From: donpark@telewise.com (Don Park)
Date: Mon, 30 Oct 1995 21:24:44 -0800
Subject: Re: java-interest-digest V1 #235

I don't have access to a SPARC either and having a tough time between
nurturing my patience or going through the corporate pain of getting a SPARC
when I am suppose to be a Windows 95 man.

I am hoping that some nice folks could put up a web page which accept java
code and return class file...

Such a web page could allow regular users to play with java without
downloading JDK.

Don


------------------------------

From: freet@winternet.com (Thomas Strand)
Date: Tue, 31 Oct 1995 00:30:56 -0600
Subject: VR Java ?

Is Java Flexible enough to do like say Renderware or Open Gl type stuff?
Like VR with animations? Is Java that BIG??

Thomas Strand
God bless you,

Thomas Strand

Fresh R I D E Multimedia Surfware
http://www.freshride.com
thomas@freshride.com
(612)331-6343


------------------------------

End of java-interest-digest V1 #240
***********************************



-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post