Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 106100 - ClassCastException when changing project preferences
Summary: ClassCastException when changing project preferences
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: APT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jess Garms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 17:02 EDT by Daniel R Somerfield CLA
Modified: 2005-08-04 18:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel R Somerfield CLA 2005-08-04 17:02:59 EDT
1. With APT globally disabled, open annotation processing preference.
2. Select "Configure project-specfic settings" and Enable project-specific
settings for your project.
3. Without changing anything (annotation processing should already be off) Ok
the change.

An error occurs: 
java.lang.ClassCastException:
org.eclipse.jdt.core.compiler.CompilationParticipantResult
	at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.notifyCompilationParticipants(ReconcileWorkingCopyOperation.java:145)
	at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:59)
	at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:718)
	at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:777)
	at
org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1081)
	at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:98)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
	at org.eclipse.core.runtime.Platform.run(Platform.java:783)
	at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:82)
	at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:147)
	at
org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:86)
	at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:94)
	at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:75)
	at org.eclipse.jdt.internal.ui.text.JavaReconciler.process(JavaReconciler.java:339)
	at
org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:204)
Comment 1 Jess Garms CLA 2005-08-04 17:50:15 EDT
Need to check getKind() of compilation result in ReconcileWorkingCopyOperation
before casting.
Comment 2 Jess Garms CLA 2005-08-04 18:41:14 EDT
Added check before casting.