public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "Thierry dot Vieville at sophia dot inria dot fr" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/22090] New: Attempt to compile java1.5 classes with gcj Date: Thu, 16 Jun 2005 12:15:00 -0000 [thread overview] Message-ID: <20050616121515.22090.Thierry.Vieville@sophia.inria.fr> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 7659 bytes --] * I have a set of java classes http://www-sop.inria.fr/odyssee/imp of every day use, things were 100% ok using gcj when it was java1.[34]. Now in java1.5 everything is ok with the sun jdk1.5 but i still want to reuse gcj for obvious reasons * With gcc-4.1 Linux 2.6.10-1.766_FC3 #1 Wed Feb 9 23:06:42 EST 2005 i686 i686 i386 GNU/Linux gcj (GCC) 4.1.0 20050610 (experimental) - the header compilation (using gcjh) seems perfect http://www-sop.inria.fr/odyssee/imp/gcj/include/index.html providing that generic types are mapped onto ::java::lang::Object (which seems fair to me considering the Java5 generics design) - if i try to compile java1.5 sources i get a huge set of errors - if i try to compile java1.5 classes (pre-compiled by the sun jdk1.5) it seems to be almost ok except these ``internal´´ errors (i.e. erros occuring in java.* classes used by the user classes): class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' class 'java.lang.Double' has no method named 'valueOf' matching signature '(D)Ljava/lang/Double;' class 'java.util.regex.Matcher' has no method named 'region' matching signature '(II)Ljava/util/regex/Matcher;' class 'java.util.regex.Matcher' has no method named 'usePattern' matching signature class 'java.math.BigDecimal' has no method named '<init>' matching signature '(J)V ====> This seems to be obvious errors . . is there a solution ? ? introduce element in the class-path ? ? uses a specific libgcj ? --- detailled description follows ------- /usr/local/gcc-4.1/bin/gcj -classpath $USER_CLASS_DIRECTORY -c $USER_CLASS_FILES java/lang/Throwable.java: In class 'imp.util.Servlet': java/lang/Throwable.java: In method 'imp.util.Servlet.check(int,boolean)': java/lang/Throwable.java:237: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/lang/Throwable.java:237: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/lang/Throwable.java:237: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/lang/String.java: In class 'imp.util.PatternReader': java/lang/String.java: In method 'imp.util.PatternReader.read(java.lang.String,java.lang.String,int)': java/lang/String.java:69: error: class 'java.util.regex.Matcher' has no method named 'usePattern' matching signature '(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;' java/lang/String.java:70: error: class 'java.util.regex.Matcher' has no method named 'region' matching signature '(II)Ljava/util/regex/Matcher;' imp/util/Servlet.java: In class 'imp.util.Servlet$Connection': imp/util/Servlet.java: In method 'imp.util.Servlet$Connection.run()': imp/util/Servlet.java:190: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/lang/Throwable.java: In class 'imp.classifier.Mapping': java/lang/Throwable.java: In method 'imp.classifier.Mapping.map()': java/lang/Throwable.java:123: error: class 'java.lang.Double' has no method named 'valueOf' matching signature '(D)Ljava/lang/Double;' java/lang/Throwable.java:123: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java: In class 'imp.core.AbstractValue': java/util/HashMap.java: In method 'imp.core.AbstractValue.compare(imp.core.Value,imp.core.Value,java.util.HashMap)': java/util/HashMap.java:69: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:75: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:76: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:78: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:79: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:84: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:85: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:86: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:89: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:90: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:92: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/util/HashMap.java:95: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' imp/core/Functions.java: In class 'imp.core.Wrapper': imp/core/Functions.java: In method 'imp.core.Wrapper.add(java.lang.String,java.lang.Object,int,imp.core.Value)': imp/core/Functions.java:154: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' imp/core/Operator.java: In class 'imp.core.Operator$1': imp/core/Operator.java: In method 'imp.core.Operator$1.call(imp.core.LogicalStructure)': imp/core/Operator.java:226: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' imp/core/Operator.java:226: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' java/lang/String.java: In class 'imp.core.NumberValue': java/lang/String.java: In method 'imp.core.NumberValue.set(long)': java/lang/String.java:43: error: class 'java.math.BigDecimal' has no method named '<init>' matching signature '(J)V' java/lang/String.java:43: error: expected type 'java.math.BigDecimal' but stack contains 'java.math.BigDecimal' java/lang/String.java: In method 'imp.core.NumberValue.inverse()': java/lang/String.java:86: error: class 'java.math.BigDecimal' has no method named '<init>' matching signature '(I)V' java/lang/String.java:86: internal compiler error: in push_type, at java/expr.c:272 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. imp/ima/util/Momenta.java: In class 'imp.ima.util.Momenta$Blob': imp/ima/util/Momenta.java: In method 'imp.ima.util.Momenta$Blob.add(int,int)': imp/ima/util/Momenta.java:108: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' imp/ima/util/Momenta.java:110: error: class 'java.lang.Integer' has no method named 'valueOf' matching signature '(I)Ljava/lang/Integer;' -- Summary: Attempt to compile java1.5 classes with gcj Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Thierry dot Vieville at sophia dot inria dot fr CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org GCC host triplet: Linux 2.6.10-1.766_FC3 #1 Wed Feb 9 23:06:42 EST 2005 i686 i686 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22090
next reply other threads:[~2005-06-16 12:15 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-06-16 12:15 Thierry dot Vieville at sophia dot inria dot fr [this message] 2005-06-16 13:11 ` [Bug libgcj/22090] " pinskia at gcc dot gnu dot org 2005-06-16 13:20 ` pinskia at gcc dot gnu dot org 2005-06-19 23:02 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050616121515.22090.Thierry.Vieville@sophia.inria.fr \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).