This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Adding 'Adding new classes' to HACKING
- To: java-patches at gcc dot gnu dot org
- Subject: Adding 'Adding new classes' to HACKING
- From: Mark Wielaard <mark at klomp dot org>
- Date: Mon, 23 Jul 2001 01:14:21 +0200
- Cc: java at gcc dot gnu dot org
- References: <sb5a4d00.005@tapsellferrier.co.uk> <20010722121925.B8075@klomp.org> <874rs5q67g.fsf@creche.redhat.com>
Hi,
On Sun, Jul 22, 2001 at 10:28:03AM -0600, Tom Tromey wrote:
>
> You only need to do this if you add a class to java.lang, java.io, or
> java.util (including sub-packages, like java.lang.ref).
>
> * Edit gcj/javaprims.h
>
> * Go to the `namespace java' line, and delete that entire block (the
> entire contents of the namespace)
>
> * Then insert the output of `perl ../scripts/classes.pl' into the file
> at that point.
Thanks, this was indeed what was blocking me. I would like to add it to
the HACKING file.
2001-07-23 Mark Wielaard <mark@klomp.org>
* HACKING: add description on updating namespace
I also noticed that this file only exists on the main branch, may I also
add it to the gcc-3_0-branch?
Is there a reason to do it this way for the java.lang, java.io and java.util
(sub)packages, but not for the other packages?
Cheers,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore
Index: HACKING
===================================================================
RCS file: /cvs/gcc/gcc/libjava/HACKING,v
retrieving revision 1.1
diff -u -r1.1 HACKING
--- HACKING 2001/02/17 14:24:41 1.1
+++ HACKING 2001/07/22 23:03:51
@@ -44,3 +44,20 @@
files to the Makefile.am, then just type "automake" and it will regenerate the
Makefile.in. Easy!
+Tom Tromey adds:
+If you add a class to java.lang, java.io, or java.util
+(including sub-packages, like java.lang.ref).
+
+* Edit gcj/javaprims.h
+
+* Go to the `namespace java' line, and delete that entire block (the
+ entire contents of the namespace)
+
+* Then insert the output of `perl ../scripts/classes.pl' into the file
+ at that point.
+
+If you're generating a patch there is a program you can get to do an
+offline `cvs add' (it will fake an `add' if you don't have write
+permission yet). Then you can use `cvs diff -N' to generate the
+patch. See http://www.red-bean.com/cvsutils/
+