Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 18750 invoked from network); 25 Nov 2009 03:10:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 03:10:16 -0000 Received: (qmail 37804 invoked by uid 500); 25 Nov 2009 03:10:16 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 37740 invoked by uid 500); 25 Nov 2009 03:10:16 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 37730 invoked by uid 500); 25 Nov 2009 03:10:16 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 37724 invoked by uid 99); 25 Nov 2009 03:10:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 03:10:16 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 03:10:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6C63234C04C for ; Tue, 24 Nov 2009 19:09:52 -0800 (PST) Message-ID: <357963931.1259118592808.JavaMail.jira@brutus> Date: Tue, 24 Nov 2009 19:09:52 -0800 (PST) From: "Barry Kaplan (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Issue Comment Edited: (CAMEL-2167) Upgrade camel-scala to scala 2.8 In-Reply-To: <839999656.1258053112705.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56076#action_56076 ] Barry Kaplan edited comment on CAMEL-2167 at 11/24/09 7:09 PM: --------------------------------------------------------------- Ah, well looks like its more java generics foo. Likely the self referentials, eg: "class ProcessorDefinition". This going to be a slog. Here is one example: {code} public abstract class OptionalIdentifiedDefinition {..} public abstract class ProcessorDefinition extends OptionalIdentifiedDefinition implements Block {..} {code} The above compiles fine with just javac. But when scalac see's this (when trying to compile scala) it complains that ProcessorDefinition does not provide the type argument for OptionalIdentifiedDefinition. I only found this by extracting out just the type declarations into a separate project. In that small project scalac did not crash but provided the error message. In the camel-scala project scalac just barfs. _rant begin_ I hate java generics. I hate java. After a couple years of only scala, groovy, ruby, and c# I had forgotten what an archaic, noisy language java is. _rant end_ was (Author: memelet): Ah, well looks like its more java generics foo. Likely the self referentials, eg: "class ProcessorDefinition". > Upgrade camel-scala to scala 2.8 > -------------------------------- > > Key: CAMEL-2167 > URL: https://issues.apache.org/activemq/browse/CAMEL-2167 > Project: Apache Camel > Issue Type: Improvement > Components: camel-scala > Affects Versions: 2.0.0 > Reporter: Barry Kaplan > Assignee: Hadrian Zbarcea > Fix For: 2.2.0, 2.3.0 > > Attachments: Upgrade_to_scala_2_8.patch > > > The attached patch upgrades to 2.8.0-SNAPSHOT (actually a specific version, but pretty close to today). > Only a few changes were required: > - Change package declarations to new 2.8 style that allows relative imports > - Change org.apache.camel.scala.conveters.ScalaTypeConverter from a singleton object to a class. Otherwise ObjectHelper failed to instantiate the converter due to private access. (This could be 2.8 bug. I will need to raise an issue.) > - Removed generic parameters on references to java classes that were not generic. Don't know why this compiled with scala 2.7. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.