Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 80854 invoked from network); 22 Sep 2010 09:45:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 09:45:58 -0000 Received: (qmail 60556 invoked by uid 500); 22 Sep 2010 09:45:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 60448 invoked by uid 500); 22 Sep 2010 09:45:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 60440 invoked by uid 99); 22 Sep 2010 09:45:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 09:45:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 09:45:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8M9jXa6005562 for ; Wed, 22 Sep 2010 09:45:33 GMT Message-ID: <25491662.339041285148733687.JavaMail.jira@thor> Date: Wed, 22 Sep 2010 05:45:33 -0400 (EDT) From: "Andreas Sewe (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6535) Compiling the Scala library against the Harmony JRE doesn't work In-Reply-To: <5361550.107431275409897286.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913478#action_12913478 ] Andreas Sewe commented on HARMONY-6535: --------------------------------------- While the Map.Entry itself is the same in both the Linux and Windows JREs, digging a little bit further revealed an oddity in both WeakHashMap and IdentityHashMap: The Linux WeakHashMap classfile contains a InnerClass entry not present in its Windows counterpart. The following is straight from javap -verbose: InnerClass: + public abstract #178= #176 of #5; //Entry=class java/util/Map$Entry of class java/util/Map #94; //class java/util/WeakHashMap$1 #104; //class java/util/WeakHashMap$2 #114; //class java/util/WeakHashMap$3 ! final #178= #26 of #1; //Entry=class java/util/WeakHashMap$Entry of class java/util/WeakHashMap ! #181= #179 of #1; //HashIterator=class java/util/WeakHashMap$HashIterator of class java/util/WeakHashMap In a similar vein, IdentityHashMap is missing an InnterClass entry in the Windows version: InnerClass: #139; //class java/util/IdentityHashMap$1 #149; //class java/util/IdentityHashMap$2 #237= #99 of #1; //IdentityHashMapEntry=class java/util/IdentityHashMap$IdentityHashMapEntry of class java/util/IdentityHashMap #238= #129 of #1; //IdentityHashMapEntrySet=class java/util/IdentityHashMap$IdentityHashMapEntrySet of class java/util/IdentityHashMap #241= #239 of #1; //IdentityHashMapIterator=class java/util/IdentityHashMap$IdentityHashMapIterator of class java/util/IdentityHashMap + public abstract #244= #242 of #5; //Entry=class java/util/Map$Entry of class java/util/Map I think the missing entry might be what's leading the Scala compiler astray. > Compiling the Scala library against the Harmony JRE doesn't work > ---------------------------------------------------------------- > > Key: HARMONY-6535 > URL: https://issues.apache.org/jira/browse/HARMONY-6535 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 6.0M1 > Environment: Linux 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24 07:28:56 UTC 2010 i686 GNU/Linux > Reporter: Andreas Sewe > Assignee: Mark Hindess > > Please note: I am unsure whether this is a bug within the Scala compiler or less than perfect Java SE 6 compatibility on Harmony's part. > To reproduce the bug/incompatibility compile WeakHashMap.scala from the Scala library (version 2.8.0.RC3) against the Apache Harmony 6.0M1 JRE, with CLASSPATH set to the .jars in the Harmony distribution: > > ./bin/scalac -version > Scala compiler version 2.8.0.RC3 -- Copyright 2002-2010, LAMP/EPFL > > ./bin/scalac -javabootclasspath $CLASSPATH ../scala/src/library/scala/collection/mutable/WeakHashMap.scala > error: error while loading WeakHashMap, Missing dependency 'class java.util.Map$Entry', required by /usr/lib/harmony-6.0/jdk/jre/lib/boot/luni.jar(java/util/WeakHashMap.class) > error: error while loading AbstractMap, Missing dependency 'class java.util.Map$Entry', required by /usr/lib/harmony-6.0/jdk/jre/lib/boot/luni.jar(java/util/AbstractMap.class) > error: error while loading Hashtable, Missing dependency 'class java.util.Map$Entry', required by /usr/lib/harmony-6.0/jdk/jre/lib/boot/luni.jar(java/util/Hashtable.class) > three errors found > For some reason, scalac, the Scala compiler, is unable to track down the Entry class. I suspect that there is some subtle difference between Harmony's classes and those of the Sun JDK. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.