I was compiling an applet that began
- - - - - - - - - - - - - - - - - - - - - - - -
/* multi-line comments bla bla bla */
import awt.*
import net.www.html.URL;
- - - - - - - - - - - - - - - - - - - - - - - -
(notice the missing ';' after the 'awt.*') and got the right error
message from the compiler, except that the compiler first threw an
exception. Here it is:
- - - - - - - - - - - - - - - - - - - - - - - -
java.tools.java.SyntaxError
at java.lang.Exception.<init>(Exception.java)
at java.tools.java.SyntaxError.<init>(SyntaxError.java)
at java.tools.java.Parser.expect(Parser.java)
at java.tools.java.Parser.parseFile(Parser.java)
at java.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java)
at java.tools.javac.Main.compile(Main.java)
at java.tools.javac.Main.main(Main.java)
Bookmark.java:20: ';' expected.
import awt.*
^
1 error
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -
/* multi-line comments bla bla bla */
import awt.*
import net.www.html.URL;
- - - - - - - - - - - - - - - - - - - - - - - -
(notice the missing ';' after the 'awt.*') and got the right error
message from the compiler, except that the compiler first threw an
exception. Here it is:
- - - - - - - - - - - - - - - - - - - - - - - -
java.tools.java.SyntaxError
at java.lang.Exception.<init>(Exception.java)
at java.tools.java.SyntaxError.<init>(SyntaxError.java)
at java.tools.java.Parser.expect(Parser.java)
at java.tools.java.Parser.parseFile(Parser.java)
at java.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java)
at java.tools.javac.Main.compile(Main.java)
at java.tools.javac.Main.main(Main.java)
Bookmark.java:20: ';' expected.
import awt.*
^
1 error
- - - - - - - - - - - - - - - - - - - - - - - -