Update of /cvsroot/nice/Nice/regtest/java
In directory sc8-pr-cvs1:/tmp/cvs-serv16598/regtest/java
Modified Files:
Makefile
Added Files:
lazyLoading.nice
Log Message:
Lazy loading of Java classes and methods. This avoids loading huge
hierarchy recursively, which improves compilation speed and reduces
ambiguities.
--- NEW FILE: lazyLoading.nice ---
package regtest.java;
class SubJ extends regtest.java.J.J {}
jMethod(s@SubJ, o) {
if (o != null)
o.otherMethod();
}
Index: Makefile
===================================================================
RCS file: /cvsroot/nice/Nice/regtest/java/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Makefile 17 Oct 2003 15:25:50 -0000 1.1
--- Makefile 28 Nov 2003 14:01:31 -0000 1.2
***************
*** 1,3 ****
! all: B/BIj.class B/BAj.class
A/An.class A/In.class: A/A.nice
--- 1,3 ----
! all: B/BIj.class B/BAj.class J/J.class J/Other.class
A/An.class A/In.class: A/A.nice
***************
*** 9,10 ****
--- 9,16 ----
B/BIj.class: A/In.class B/BIj.java
javac -classpath "${NICE_TOP}" B/BIj.java
+
+ J/J.class: J/J.java
+ javac -classpath "${NICE_TOP}" J/J.java
+
+ J/Other.class: J/Other.java
+ javac -classpath "${NICE_TOP}" J/Other.java
|