Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 187333 Details for
Bug 268574
[exceptions] Very frequent ClassCastExceptions: CompilationUnit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix Patch
268574_class_cast.txt (text/plain), 2.04 KB, created by
Ian Tewksbury
on 2011-01-21 16:58:53 EST
(
hide
)
Description:
Fix Patch
Filename:
MIME Type:
Creator:
Ian Tewksbury
Created:
2011-01-21 16:58:53 EST
Size:
2.04 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.core >Index: src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java >=================================================================== >RCS file: /cvsroot/webtools/org.eclipse.jsdt/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java,v >retrieving revision 1.20 >diff -u -r1.20 Compiler.java >--- src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java 22 Jun 2009 19:06:00 -0000 1.20 >+++ src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java 21 Jan 2011 21:57:39 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -14,7 +14,6 @@ > import java.io.PrintWriter; > import java.io.StringWriter; > >-import org.eclipse.wst.jsdt.core.IClassFile; > import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem; > import org.eclipse.wst.jsdt.core.compiler.IProblem; > import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode; >@@ -37,6 +36,7 @@ > import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemReporter; > import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemSeverities; > import org.eclipse.wst.jsdt.internal.compiler.util.Messages; >+import org.eclipse.wst.jsdt.internal.core.builder.SourceFile; > import org.eclipse.wst.jsdt.internal.oaametadata.LibraryAPIs; > > public class Compiler implements ITypeRequestor, ProblemSeverities { >@@ -224,7 +224,7 @@ > parser.inferTypes(parsedUnit,this.options); > // initial type binding creation > lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction); >- if (!(sourceUnit instanceof IClassFile)) >+ if (sourceUnit instanceof SourceFile) > this.addCompilationUnit(sourceUnit, parsedUnit); > > // binding resolution
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268574
:
129060
| 187333