This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Adding 'Adding new classes' to HACKING


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/
+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]