enabling stub java.awt classes?

Per Bothner per@bothner.com
Wed Aug 11 21:40:00 GMT 1999


I wrote some java.awt stub classes so I could compile Kawa.
I didn't make them compile by default, because it seemed to trigger
some compiler bug I didn't have time to chase down.  Now that
people are thinking about making a working AWT, perhaps we should
enable the existing stub files:  Maybe the compiler bug it no
longer an issue - and if it is, I guess it needs to be chased down!

About the license issue:  I don't see any reason not to use code
derived from ClassPath for a Gtk peer, since the LGPL "problem"
with ClassPath is not an issue as long as you are using gtk,
since that is LGPL anyway, it appears.  You probably would not be
using gtk on an embedded device.  However, LGPL for awt proper is
a different issue, since you might well want to use a lightweight
awt implementation (if that is possible ...).

Index: Makefile.am
===================================================================
RCS file: /cvs/java/libgcj/libjava/Makefile.am,v
retrieving revision 1.26
diff -u -r1.26 Makefile.am
--- Makefile.am	1999/08/08 14:06:19	1.26
+++ Makefile.am	1999/08/12 04:29:31
@@ -469,8 +469,6 @@
 java/awt/peer/FramePeer.java \
 java/awt/peer/WindowPeer.java
 
-# $(awt_java_source_files)
-
 ## Java files which are created by configure and thus are in the build
 ## directory.
 built_java_source_files = java/lang/ConcreteProcess.java
@@ -480,6 +478,7 @@
 ## convert_source_files.  If the .java file has a hand-maintained
 ## header, please list it in special_java_source_files.
 ordinary_java_source_files =  $(convert_source_files) \
+$(awt_java_source_files) \
 gnu/gcj/runtime/MethodInvocation.java \
 gnu/gcj/util/path/SearchPath.java \
 gnu/gcj/util/path/PathEntry.java \
@@ -748,8 +747,6 @@
   java/lang/e_sqrt.c      java/lang/s_scalbn.c    java/lang/sf_rint.c     \
   java/lang/k_cos.c       java/lang/s_sin.c
 
-#java/awt/natToolkit.cc
-
 ## This lists all the C++ source files in subdirectories.
 nat_source_files = \
 gnu/gcj/convert/JIS0208_to_Unicode.cc \
@@ -759,6 +756,7 @@
 gnu/gcj/convert/natInput_SJIS.cc \
 gnu/gcj/convert/natOutput_EUCJIS.cc \
 gnu/gcj/convert/natOutput_SJIS.cc \
+java/awt/natToolkit.cc \
 java/io/natFile.cc \
 java/io/natFileDescriptor.cc \
 java/lang/natCharacter.cc \

-- 
	--Per Bothner
bothner@pacbell.net  per@bothner.com   http://home.pacbell.net/bothner/


More information about the Java mailing list