Community
Participate
Working Groups
Build Identifier: 3.6.0 I'm trying to integrate Eclipse with Ant 1.8.1 but getting the following exception when editing build files with "<import>"-s: java.lang.ClassCastException: org.apache.tools.ant.helper.ProjectHelper2 cannot be cast to org.eclipse.ant.internal.ui.editor.utils.ProjectHelper at org.eclipse.ant.internal.ui.model.AntModel.parseDocument(AntModel.java:312) at org.eclipse.ant.internal.ui.model.AntModel.reconcile(AntModel.java:267) at org.eclipse.ant.internal.ui.editor.text.XMLReconcilingStrategy.internalReconcile(XMLReconcilingStrategy.java:43) at org.eclipse.ant.internal.ui.editor.text.XMLReconcilingStrategy.reconcile(XMLReconcilingStrategy.java:56) at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77) at org.eclipse.ant.internal.ui.editor.text.NotifyingReconciler.process(NotifyingReconciler.java:39) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) Reproducible: Always Steps to Reproduce: 1. Install org.apache.ant_1.8.1.zip from https://bugs.eclipse.org/bugs/show_bug.cgi?id=302296 2. Try to edit build files with "<import>"-s
Created attachment 178299 [details] AntModel.patch The attached patch avoids ClassCastException, but I'm not sure if it fixes the issue completely.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.