[3641] in java-interest

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

Dependencies

daemon@ATHENA.MIT.EDU (David Geary)
Mon Nov 20 22:49:54 1995

Date: Mon, 20 Nov 1995 18:37:02 -0700
From: David.Geary@Central.Sun.COM (David Geary)
To: java-interest@java.Eng.Sun.COM

Kind Java Folks,

  I've got two classes:  View and Controller.  View contains a Controller,
and Controller contains a View.

  Evidently, when importing a class, javac looks for a XXX.class, where
XXX is the class being imported.  If not found in $CLASSPATH, the import
fails.

  Therefore, in order to get Controller to compile, I must comment out all
references to View in Controller, then compile Controller.  Once Controller
is compiled, I can compile View, being careful to comment out all references
to Controller methods invoked in View, which I commented out of Controller to 
begin with.  Once View is compiled, I must go back into Controller, and 
uncomment all references to View (now those references are resolved because 
javac can import View).  Then I must go back into View and uncomment out all 
references to Controller methods I had commented out previously and compile 
View once more.

  Surely I am a total idiot and am doing something horrendously wrong.

  Someone please enlighten me.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 David Geary                                      "It's easier not to be wise"
 geary@rmtc.Central.Sun.COM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
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