public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/31890] New: Java Namespace error - javaprims.h out of sync
@ 2007-05-10 5:36 rob1weld at aol dot com
2007-05-14 19:57 ` [Bug java/31890] " tromey at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rob1weld at aol dot com @ 2007-05-10 5:36 UTC (permalink / raw)
To: java-prs
Even though I specified "i686-pc-linux-gnu" as the platform this should be
applicable to all platforms, if you compile Java.
I'm not an expert on Java - but the file "gcc-4_2-branch/libjava/HACKING" says:
...
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. This must be run from the build tree, in
<build>/classpath/lib; it uses the .class file name to determine
what to print.
...
I did _NOT_ alter the gcc SVN from its origonal download _NOR_ did I add the
"classpath" SVN, but I _DID_ try the above few lines to check if javaprims.h
was correct. It seems wrong!?
cd gcc-4_2-build/i686-pc-linux-gnu/libjava/classpath/lib/
perl /root/downloads/gcc-4_2-branch/libjava/scripts/classes.pl | diff -u
/root/downloads/gcc-4_2-branch/libjava/gcj/javaprims.h -
Why all the differences?
--- /root/downloads/gcc-4_2-branch/libjava/gcj/javaprims.h 2007-05-01
05:47:30.000000000 -0700
+++ - 2007-05-09 22:19:18.997537000 -0700
- // The following class declarations are automatically generated by
- // the `classes.pl' script.
namespace java
{
namespace io
@@ -208,9 +164,9 @@
class Runtime;
class RuntimeException;
class RuntimePermission;
- class SecurityContext;
class SecurityException;
class SecurityManager;
+ class SecurityManager$1;
class Short;
class StackOverflowError;
class StackTraceElement;
@@ -247,6 +203,7 @@
class Annotation;
class AnnotationFormatError;
class AnnotationTypeMismatchException;
+ class IncompleteAnnotationException;
}
+ class IncompleteAnnotationException;
}
namespace instrument
@@ -258,6 +215,25 @@
class UnmodifiableClassException;
}
+ namespace management
+ {
+ class ClassLoadingMXBean;
+ class CompilationMXBean;
+ class GarbageCollectorMXBean;
+ class ManagementFactory;
+ class ManagementPermission;
+ class MemoryMXBean;
+ class MemoryManagerMXBean;
+ class MemoryNotificationInfo;
+ class MemoryPoolMXBean;
+ class MemoryUsage;
+ class OperatingSystemMXBean;
+ class RuntimeMXBean;
+ class ThreadInfo;
+ class ThreadMXBean;
+ class VMManagementFactory;
+ }
+
namespace ref
{
class PhantomReference;
@@ -352,7 +328,7 @@
class Collections$UnmodifiableMap;
class Collections$UnmodifiableMap$UnmodifiableEntrySet;
class Collections$UnmodifiableMap$UnmodifiableEntrySet$7;
- class Collections$UnmodifiableMap$UnmodifiableEntrySet$7$8;
+ class
Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableMapEntry;
class Collections$UnmodifiableRandomAccessList;
class Collections$UnmodifiableSet;
class Collections$UnmodifiableSortedMap;
@@ -362,11 +338,17 @@
class Currency;
class Date;
class Dictionary;
+ class DuplicateFormatFlagsException;
class EmptyStackException;
class Enumeration;
class EventListener;
class EventListenerProxy;
class EventObject;
+ class FormatFlagsConversionMismatchException;
+ class Formattable;
+ class FormattableFlags;
+ class Formatter;
+ class FormatterClosedException;
class GregorianCalendar;
class HashMap;
class HashMap$1;
@@ -392,6 +374,13 @@
class IdentityHashMap$3;
class IdentityHashMap$IdentityEntry;
class IdentityHashMap$IdentityIterator;
+ class IllegalFormatCodePointException;
+ class IllegalFormatConversionException;
+ class IllegalFormatException;
+ class IllegalFormatFlagsException;
+ class IllegalFormatPrecisionException;
+ class IllegalFormatWidthException;
+ class InputMismatchException;
class InvalidPropertiesFormatException;
class Iterator;
class LinkedHashMap;
@@ -407,6 +396,8 @@
class Locale;
class Map;
class Map$Entry;
+ class MissingFormatArgumentException;
+ class MissingFormatWidthException;
class MissingResourceException;
class NoSuchElementException;
class Observable;
@@ -443,6 +434,9 @@
class TreeMap$SubMap$6;
class TreeMap$TreeIterator;
class TreeSet;
+ class UUID;
+ class UnknownFormatConversionException;
+ class UnknownFormatFlagsException;
class VMTimeZone;
class Vector;
class Vector$1;
@@ -477,9 +471,11 @@
class Handler;
class Level;
class LogManager;
+ class LogManager$1;
class LogRecord;
class Logger;
class Logger$1;
+ class LoggingMXBean;
class LoggingPermission;
class MemoryHandler;
class SimpleFormatter;
@@ -538,134 +534,3 @@
}
}
}
-}
-
-typedef struct java::lang::Object* jobject;
In the "namespace java" section should all the "-"'s be removed and the "+"'s
added ? Is it incorrect to follow those instructions to test the javaprims.h
file ?
--
Summary: Java Namespace error - javaprims.h out of sync
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rob1weld at aol dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
@ 2007-05-14 19:57 ` tromey at gcc dot gnu dot org
2007-05-15 4:29 ` [Bug libgcj/31890] " rob1weld at aol dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-05-14 19:57 UTC (permalink / raw)
To: java-prs
------- Comment #1 from tromey at gcc dot gnu dot org 2007-05-14 20:57 -------
It is easy to forget to update this file, I'm sure that is what happened.
This only matters if you have CNI code that uses one of these classes.
So, it is definitely a problem, but generally not a very serious one.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-14 20:57:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
2007-05-14 19:57 ` [Bug java/31890] " tromey at gcc dot gnu dot org
@ 2007-05-15 4:29 ` rob1weld at aol dot com
2008-08-04 13:50 ` rob1weld at aol dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rob1weld at aol dot com @ 2007-05-15 4:29 UTC (permalink / raw)
To: java-prs
------- Comment #2 from rob1weld at aol dot com 2007-05-15 05:29 -------
Thanks. If someone with write-access runs the script and tosses the result into
the SVN I'll consider this bug resolved (for me). I changed severity to minor.
The maintainers _might_ want to update the "Makefile maintainer scripts" (or
whatever scripts you use to test GCC prior to sending in your changes to the
SVN) so that the script gets ran when changes are made to the appropriate files
(don't forget the check_jni_methods.sh problem while your there :) ).
--
rob1weld at aol dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
2007-05-14 19:57 ` [Bug java/31890] " tromey at gcc dot gnu dot org
2007-05-15 4:29 ` [Bug libgcj/31890] " rob1weld at aol dot com
@ 2008-08-04 13:50 ` rob1weld at aol dot com
2008-08-04 18:52 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rob1weld at aol dot com @ 2008-08-04 13:50 UTC (permalink / raw)
To: java-prs
------- Comment #3 from rob1weld at aol dot com 2008-08-04 13:50 -------
Changed severity back up to normal (from minor) since this bug has sat open for
a year with no reply, and there is something to fix.
--
rob1weld at aol dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
` (2 preceding siblings ...)
2008-08-04 13:50 ` rob1weld at aol dot com
@ 2008-08-04 18:52 ` tromey at gcc dot gnu dot org
2008-08-05 1:29 ` tromey at gcc dot gnu dot org
2008-08-05 15:45 ` doko at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-08-04 18:52 UTC (permalink / raw)
To: java-prs
------- Comment #4 from tromey at gcc dot gnu dot org 2008-08-04 18:52 -------
Testing a patch.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-05-14 20:57:32 |2008-08-04 18:52:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
` (3 preceding siblings ...)
2008-08-04 18:52 ` tromey at gcc dot gnu dot org
@ 2008-08-05 1:29 ` tromey at gcc dot gnu dot org
2008-08-05 15:45 ` doko at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2008-08-05 1:29 UTC (permalink / raw)
To: java-prs
------- Comment #5 from tromey at gcc dot gnu dot org 2008-08-05 01:29 -------
Subject: Bug 31890
Author: tromey
Date: Tue Aug 5 01:28:26 2008
New Revision: 138664
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138664
Log:
PR libgcj/31890:
* gcj/javaprims.h: Regenerate class list.
Modified:
trunk/libjava/ChangeLog
trunk/libjava/gcj/javaprims.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/31890] Java Namespace error - javaprims.h out of sync
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
` (4 preceding siblings ...)
2008-08-05 1:29 ` tromey at gcc dot gnu dot org
@ 2008-08-05 15:45 ` doko at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: doko at gcc dot gnu dot org @ 2008-08-05 15:45 UTC (permalink / raw)
To: java-prs
------- Comment #6 from doko at gcc dot gnu dot org 2008-08-05 15:45 -------
Subject: Bug 31890
Author: doko
Date: Tue Aug 5 15:44:20 2008
New Revision: 138731
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138731
Log:
2008-08-05 Matthias Klose <doko@ubuntu.com>
PR libgcj/31890
* gcj/javaprims.h: Regenerate class list.
* HACKING: Update instructions how to build gcj/javaprims.h.
Modified:
branches/gcc-4_3-branch/libjava/ChangeLog
branches/gcc-4_3-branch/libjava/HACKING
branches/gcc-4_3-branch/libjava/gcj/javaprims.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31890
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-08-05 15:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-10 5:36 [Bug java/31890] New: Java Namespace error - javaprims.h out of sync rob1weld at aol dot com
2007-05-14 19:57 ` [Bug java/31890] " tromey at gcc dot gnu dot org
2007-05-15 4:29 ` [Bug libgcj/31890] " rob1weld at aol dot com
2008-08-04 13:50 ` rob1weld at aol dot com
2008-08-04 18:52 ` tromey at gcc dot gnu dot org
2008-08-05 1:29 ` tromey at gcc dot gnu dot org
2008-08-05 15:45 ` doko at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).