[777] in java-interest
/** method must be there, or type expected error
daemon@ATHENA.MIT.EDU (Scott Moody)
Wed Jul 19 22:43:04 1995
Date: Wed, 19 Jul 95 10:03:54 PDT
From: scott@plato.ds.boeing.com (Scott Moody)
To: java-interest@java.Eng.Sun.COM
I just noticed that the java parser wants the method that goes
with /** commented info (since it keeps this comment with the method).
Well if you happen to comment out the routine (for say testing) then
the compiler burps wanting a 'type'.
So one must comment out the entire routine plus comment
(or change the comment to /* or //)
eg.
/**
* this updates the applet
*/
//public void update(Graphics g) {
//g.clearRect(0,0,100,100);
//}
^ 1 error (type expected)
---
So this should either be documented as a 'feature' or looked into. I know
the lookahead is a problem. But you don't want novices trying to figure
the strange error.
-scott
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com