Bug 99892 - Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
Summary: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
Status: RESOLVED DUPLICATE of bug 100631
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-14 02:54 EDT by Tomasz Blachowicz / AMG.net CLA
Modified: 2005-06-21 12:55 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 Tomasz Blachowicz / AMG.net CLA 2005-06-14 02:54:14 EDT
Problem occurred when I tried to compile my project. I use Eclipse 3.0.1/2 and
everything is ok.
-----
eclipse.buildId=I20050610-1757
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Command-line arguments:  -os win32 -ws win32 -arch x86
-----
Error 2005-06-13 09:11:41.875 Problems occurred when invoking code from plug-in:
"org.eclipse.core.resources".
java.lang.ClassCastException
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:477)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:465)
at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:190)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:99)
at
org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:43)
at
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:85)
at
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTypeFor(BinaryTypeBinding.java:742)
at
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getField(BinaryTypeBinding.java:598)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findField(Scope.java:743)
at
org.eclipse.jdt.internal.compiler.lookup.MethodScope.findField(MethodScope.java:337)
at
org.eclipse.jdt.internal.compiler.lookup.BlockScope.getBinding(BlockScope.java:439)
at
org.eclipse.jdt.internal.compiler.ast.QualifiedNameReference.resolveType(QualifiedNameReference.java:840)
at
org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:291)
at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:829)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:415)
at
org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.resolveStatements(ConstructorDeclaration.java:435)
at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:393)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1063)
at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1112)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:305)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:504)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:329)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:240)
at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:213)
at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:50)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:213)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:136)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1038)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1038)
at org.eclipse.core.runtime.Platform.run(Platform.java:775)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Comment 1 Olivier Thomann CLA 2005-06-14 08:28:24 EDT
Would it be possible to get your test case?
Comment 2 Tomasz Blachowicz / AMG.net CLA 2005-06-15 07:54:08 EDT
Unfortunetally I don't have a test case. I encountered this problem while I was
trying to set up new develoment enviroment including Eclipse 3.1 (former Eclipse
3.0.1).

The project I tried to compile is rather big so it is hard to see what's going
on.  But I try to find some time to look at sources and prepare any test case
for you soon.
Comment 3 Kent Johnson CLA 2005-06-15 10:38:56 EDT
Is this reproduceable?

If so, can you see which source files have InternalCompiler errors attached... 
that should give us a starting point for a testcase.
Comment 4 Tomasz Blachowicz / AMG.net CLA 2005-06-15 10:52:40 EDT
Sure, I can do that. Tomorrow I will have a little bit more time, so I take a
look at this.
Comment 5 Kent Johnson CLA 2005-06-15 10:58:12 EDT
Just so you know, we're shipping 3.1 & won't be able to add any more fixes 
after Friday.

It would really help if we could get a reproduceable case as soon as possible.

thanks
Comment 6 Kent Johnson CLA 2005-06-15 15:21:26 EDT
Just so you know, if we do not fix this by Friday (so it is included in 3.1) 
then it will likely be 4-6 months before a fix is released in 3.1.1

So please try to get us a testcase since we cannot reproduce this at all.

thanks
Comment 7 Kent Johnson CLA 2005-06-20 08:53:29 EDT
So any chance you can get us a testcase today?
Comment 8 Kent Johnson CLA 2005-06-21 12:55:58 EDT

*** This bug has been marked as a duplicate of 100631 ***