[3667] in java-interest

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

Re: Dependencies

daemon@ATHENA.MIT.EDU (Michael Lorton)
Tue Nov 21 22:52:24 1995

Date: Tue, 21 Nov 1995 18:25:25 -0800
From: Michael Lorton <mlorton@eshop.com>
To: David.Geary@Central.Sun.COM
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <199511211958.MAA00763@trilby.Central.Sun.COM> (David.Geary@Central.Sun.COM)


> package java.awt;
> 
> import B.java;
> 
> class A {
>    B b = null;
>    A() {
>    }
> }

Dependencies aren't your problem; DOTS are your problem.

Try
   import B

(No dot, not "java")

Also, you shouldn't put this class in the java.awt package, that would
only screw (other) things up.

M.
-
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