Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D47CD83D for ; Sat, 10 Nov 2012 15:25:13 +0000 (UTC) Received: (qmail 27784 invoked by uid 500); 10 Nov 2012 15:25:13 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 27701 invoked by uid 500); 10 Nov 2012 15:25:13 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 27685 invoked by uid 99); 10 Nov 2012 15:25:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 15:25:12 +0000 Date: Sat, 10 Nov 2012 15:25:12 +0000 (UTC) From: =?utf-8?Q?Nicolas_Lalev=C3=A9e_=28JIRA=29?= To: notifications@ant.apache.org Message-ID: <1300524477.96520.1352561112933.JavaMail.jiratomcat@arcas> In-Reply-To: <1300029002.60374.1351864512765.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (IVYDE-327) Problem when exporting the eclipse-plugins (compiler target 1.2) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVYDE-327?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Nicolas Lalev=C3=A9e resolved IVYDE-327. ----------------------------------- Resolution: Fixed Fix Version/s: (was: 2.2.0.beta1) trunk Assignee: Nicolas Lalev=C3=A9e patch applied, thanks ! =20 > Problem when exporting the eclipse-plugins (compiler target 1.2) > ---------------------------------------------------------------- > > Key: IVYDE-327 > URL: https://issues.apache.org/jira/browse/IVYDE-327 > Project: IvyDE > Issue Type: Bug > Affects Versions: 2.2.0.beta1 > Reporter: Carsten Pfeiffer > Assignee: Nicolas Lalev=C3=A9e > Priority: Trivial > Fix For: trunk > > Attachments: eclipse-export.patch > > > This is more a development environment issue than a bug in IvyDE.=20 > The JDT compiler settings in the {{org.apache.ivyde.eclipse}} plugins are= explicitly configured to compile for Java 1.2 (option "Generated .class fi= les compatibility"). > When exporting that plugin (or the feature), eclipse uses ant to compile = the plugin, which happens to use the default javac compiler instead of the = eclipse Java compiler. The Sun/Oracle compilers have a little problem with = target < 1.4, leading to a {{NullPointerException}} at runtime in SettingsS= etupEditor.java. > The issue in SettingsSetupEditor is it creates an anonymous subclass of {= {PathEditor}}, reimplementing its createText() method. That method is direc= tly called in the PathEditor constructor. Inside the createText() reimpleme= ntation, you access fields from the outer instance SettingsSetupEditor (err= orDecoration, settingsTextDeco). With target 1.2 or 1.3, the other instance= is not available though: > {code} > java.lang.NullPointerException > =09at org.apache.ivyde.eclipse.ui.SettingsSetupEditor.access$0(SettingsSe= tupEditor.java:59) > =09at org.apache.ivyde.eclipse.ui.SettingsSetupEditor$1.createText(Settin= gsSetupEditor.java:86) > =09at org.apache.ivyde.eclipse.ui.PathEditor.(PathEditor.java:73) > =09at org.apache.ivyde.eclipse.ui.SettingsSetupEditor$1.(SettingsSe= tupEditor.java:83) > =09at org.apache.ivyde.eclipse.ui.SettingsSetupEditor.(SettingsSetu= pEditor.java:83) > =09at org.apache.ivyde.eclipse.ui.SettingsSetupTab.createSetupEditor(Sett= ingsSetupTab.java:39) > =09at org.apache.ivyde.eclipse.ui.AbstractSetupTab.(AbstractSetupTa= b.java:83) > =09at org.apache.ivyde.eclipse.ui.SettingsSetupTab.(SettingsSetupTa= b.java:35) > =09at org.apache.ivyde.eclipse.cpcontainer.IvydeContainerPage$1.(Iv= ydeContainerPage.java:291) > =09at org.apache.ivyde.eclipse.cpcontainer.IvydeContainerPage.createContr= ol(IvydeContainerPage.java:291) > =09at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.ja= va:1247) > =09at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:12= 39) > =09at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228) > [...] > {code} > I suggest changing the target to 1.4 to avoid these problems or somehow e= nsure that the plugin gets always compiled with the eclipse java compiler, = even on PDE export. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira