Bug 40953 - Exception in Eclipse Compiler
Summary: Exception in Eclipse Compiler
Status: RESOLVED DUPLICATE of bug 40752
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: 3.0 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-30 11:51 EDT by Alex Karasulu CLA
Modified: 2003-07-30 15:35 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 Alex Karasulu CLA 2003-07-30 11:51:09 EDT
Some potentially relavent parameters I could not define from the bugzilla interface:

Build Version: 3.0 M2 Build For Linux w/ GTK
Component: Eclipse Java Compiler
JVM Version: 
    SUN 1.4.2 On Linux
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

Bug Description:
    Encountered internal compiler error while compiling only on Linux platform.
     
    The error can be reproduced while attempting to compile the LDAPd server
    available at http://ldapd.sourceforge.net.  The failure resulted while 
    compiling a the CompareRequestProcessor.java compilation unit.  Two 
    projects ldapd-common and ldapd-server were in configured in the workspace.
    Both have sources at $toplevel/src/java and dependent library jars in
    $toplevel/lib.  The ldapd-server project depends on the ldapd-common 
    project which compiles first successfully.

    Here's the detailed error message from the error dialog:

       Errors during build.
          org.eclipse.jdt.internal.compiler.lookup.ArrayBinding

    The stack trace for the exception that resulted and was displayed in the 
    problems list view is pasted below:

Severity	Description	Resource	In Folder	Location	Creation Time
	Internal compiler error
java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.lookup.ArrayBinding
	at
org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:273)
	at
org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType(Assignment.java:126)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:433)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:108)
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:263)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:108)
	at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:261)
	at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Block.java:119)
	at
org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(TryStatement.java:483)
	at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:361)
	at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:140)
	at
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:351)
	at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:846)
	at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:887)
	at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:270)
	at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:533)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:328)
	at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:198)
	at
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:148)
	at
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:51)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:192)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:115)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:427)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015)
	at org.eclipse.core.runtime.Platform.run(Platform.java:420)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:125)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:181)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:151)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015)
	at org.eclipse.core.runtime.Platform.run(Platform.java:420)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:165)
	at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:243)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:212)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:181)
	at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:174)
	at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
	CompareRequestProcessor.java	ldapd-server/src/java/ldapd/server/protocol	line
0	July 30, 2003 11:05:58 AM


Thanks much,
Alex Karasulu
Comment 1 Rafael Chaves CLA 2003-07-30 12:11:17 EDT
Moving to JDT/Core...
Comment 2 Olivier Thomann CLA 2003-07-30 12:18:52 EDT
This looks like a duplicate of bug 40752.
Could you please try latest integration build (0730)? It is released in this 
build.
Comment 3 Olivier Thomann CLA 2003-07-30 12:27:51 EDT
Change milestone.
Comment 4 Olivier Thomann CLA 2003-07-30 15:24:17 EDT
Please annotate the PR once you checked the latest integration build.
Comment 5 Alex Karasulu CLA 2003-07-30 15:32:52 EDT
Yup it's fixed in the 0730 integration build.  Thanks alot you guys rock!!!
Comment 6 Olivier Thomann CLA 2003-07-30 15:34:48 EDT
Reopen to close it as duplicate.
Comment 7 Olivier Thomann CLA 2003-07-30 15:35:13 EDT

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