diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-21 00:22:54 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-21 00:22:54 +0000 |
commit | 12f7c06db3de1e94ac730c7cb96cd930d55a06fe (patch) | |
tree | 1048d5a5f4309930cab33aaa85ad2b8f5054e048 /gcc/java/gcj.texi | |
parent | 2d870e5c3110e67b506ffe6615765498c2cb434e (diff) | |
download | ppe42-gcc-12f7c06db3de1e94ac730c7cb96cd930d55a06fe.tar.gz ppe42-gcc-12f7c06db3de1e94ac730c7cb96cd930d55a06fe.zip |
2005-04-20 Bryce McKinlay <mckinlay@redhat.com>
* gcj.texi: Fix typos and bogus example.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98478 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/gcj.texi')
-rw-r--r-- | gcc/java/gcj.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index c2e674e58c5..1af66900bce 100644 --- a/gcc/java/gcj.texi +++ b/gcc/java/gcj.texi @@ -1546,7 +1546,7 @@ management, but this is invisible to the application, and the reference to the object points to the dispatch table pointer.) The fields are laid out in the same order, alignment, and size as in -C++. Specifically, 8-bite and 16-bit native types (@code{byte}, +C++. Specifically, 8-bit and 16-bit native types (@code{byte}, @code{short}, @code{char}, and @code{boolean}) are @emph{not} widened to 32 bits. Note that the Java VM does extend 8-bit and 16-bit types to 32 bits when on the VM stack or temporary registers. @@ -1560,7 +1560,7 @@ public class Int @{ public int i; public Integer (int i) @{ this.i = i; @} - public static zero = new Integer(0); + public static Int zero = new Int(0); @} @end example @@ -1630,7 +1630,7 @@ it is safe to leave it out). Accessing a static field also requires the class of the field to be initialized. The Java compiler will generate code -to call @code{Jv_InitClass} before getting or setting the field. +to call @code{JvInitClass} before getting or setting the field. However, the C++ compiler will not generate this extra code, so it is your responsibility to make sure the class is initialized before you access a static field from C++. |