Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException in MemberBuilder #413

Closed
bwilkerson opened this issue Nov 10, 2011 · 4 comments
Closed

ClassCastException in MemberBuilder #413

bwilkerson opened this issue Nov 10, 2011 · 4 comments

Comments

@bwilkerson
Copy link
Member

I don't have the source used to produce the error because this came from a User Feedback e-mail, but it should be fairly easy to track down based on the stack trace. ("x.dart" is not the actual name of the file)


!ENTRY com.google.dart.tools.core 1 0 2011-11-09 18:00:37.351
!MESSAGE INFO: Could not reconcile "x.dart"
!STACK 1
Dart Model Exception: Core Exception [code 0] Failed to parse x.dart

       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:710)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:690)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:127)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:206)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.run(DartModelOperation.java:374)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.runOperation(DartModelOperation.java:441)
       at com.google.dart.tools.core.internal.model.CompilationUnitImpl.reconcile(CompilationUnitImpl.java:1357)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy$1.run(DartReconcilingStrategy.java:159)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:134)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:102)
       at com.google.dart.tools.ui.internal.text.functions.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:93)
       at com.google.dart.tools.ui.internal.text.functions.DartCompositeReconcilingStrategy.reconcile(DartCompositeReconcilingStrategy.java:120)
       at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
       at com.google.dart.tools.ui.internal.text.functions.DartReconciler.process(DartReconciler.java:387)
       at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Caused by: java.lang.ClassCastException: com.google.dart.compiler.ast.DartPropertyAccess cannot be cast to com.google.dart.compiler.ast.DartIdentifier
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.getMethodKind(MemberBuilder.java:390)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:112)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:90)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:81)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:175)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitNode(DartNodeTraverser.java:54)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitUnit(DartNodeTraverser.java:391)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:45)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:39)
       at com.google.dart.compiler.DartCompiler$Compiler.resolveLibraries(DartCompiler.java:541)
       at com.google.dart.compiler.DartCompiler$Compiler.updateAndResolve(DartCompiler.java:215)
       at com.google.dart.compiler.DartCompiler$Compiler.access$4(DartCompiler.java:190)
       at com.google.dart.compiler.DartCompiler.analyzeLibrary(DartCompiler.java:1166)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureAnalyzeLibrary(DartCompilerUtilities.java:725)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$ResolverRunnable.run(DartCompilerUtilities.java:421)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:92)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:708)
       ... 15 more
Caused by: org.eclipse.core.runtime.CoreException: Failed to parse x.dart

       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:711)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:690)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:127)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:206)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.run(DartModelOperation.java:374)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.runOperation(DartModelOperation.java:441)
       at com.google.dart.tools.core.internal.model.CompilationUnitImpl.reconcile(CompilationUnitImpl.java:1357)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy$1.run(DartReconcilingStrategy.java:159)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:134)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:102)
       at com.google.dart.tools.ui.internal.text.functions.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:93)
       at com.google.dart.tools.ui.internal.text.functions.DartCompositeReconcilingStrategy.reconcile(DartCompositeReconcilingStrategy.java:120)
       at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
       at com.google.dart.tools.ui.internal.text.functions.DartReconciler.process(DartReconciler.java:387)
       at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
Caused by: java.lang.ClassCastException: com.google.dart.compiler.ast.DartPropertyAccess cannot be cast to com.google.dart.compiler.ast.DartIdentifier
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.getMethodKind(MemberBuilder.java:390)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:112)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:90)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:81)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:175)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitNode(DartNodeTraverser.java:54)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitUnit(DartNodeTraverser.java:391)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:45)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:39)
       at com.google.dart.compiler.DartCompiler$Compiler.resolveLibraries(DartCompiler.java:541)
       at com.google.dart.compiler.DartCompiler$Compiler.updateAndResolve(DartCompiler.java:215)
       at com.google.dart.compiler.DartCompiler$Compiler.access$4(DartCompiler.java:190)
       at com.google.dart.compiler.DartCompiler.analyzeLibrary(DartCompiler.java:1166)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureAnalyzeLibrary(DartCompilerUtilities.java:725)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$ResolverRunnable.run(DartCompilerUtilities.java:421)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:92)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:708)
       ... 15 more
!SUBENTRY 1 com.google.dart.tools.core 4 0 2011-11-09 18:00:37.352
!MESSAGE Failed to parse x.dart
!STACK 0
java.lang.ClassCastException: com.google.dart.compiler.ast.DartPropertyAccess cannot be cast to com.google.dart.compiler.ast.DartIdentifier
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.getMethodKind(MemberBuilder.java:390)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:112)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitMethodDefinition(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartMethodDefinition.accept(DartMethodDefinition.java:90)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:81)
       at com.google.dart.compiler.resolver.MemberBuilder$MemberElementBuilder.visitClass(MemberBuilder.java:1)
       at com.google.dart.compiler.ast.DartClass.accept(DartClass.java:175)
       at com.google.dart.compiler.ast.DartNodeTraverser.visit(DartNodeTraverser.java:413)
       at com.google.dart.compiler.ast.DartUnit.visitChildren(DartUnit.java:99)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitNode(DartNodeTraverser.java:54)
       at com.google.dart.compiler.ast.DartNodeTraverser.visitUnit(DartNodeTraverser.java:391)
       at com.google.dart.compiler.ast.DartUnit.accept(DartUnit.java:107)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:45)
       at com.google.dart.compiler.resolver.MemberBuilder.exec(MemberBuilder.java:39)
       at com.google.dart.compiler.DartCompiler$Compiler.resolveLibraries(DartCompiler.java:541)
       at com.google.dart.compiler.DartCompiler$Compiler.updateAndResolve(DartCompiler.java:215)
       at com.google.dart.compiler.DartCompiler$Compiler.access$4(DartCompiler.java:190)
       at com.google.dart.compiler.DartCompiler.analyzeLibrary(DartCompiler.java:1166)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureAnalyzeLibrary(DartCompilerUtilities.java:725)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$ResolverRunnable.run(DartCompilerUtilities.java:421)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:92)
       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:708)

       at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:690)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:127)
       at com.google.dart.tools.core.internal.operation.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:206)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.run(DartModelOperation.java:374)
       at com.google.dart.tools.core.internal.operation.DartModelOperation.runOperation(DartModelOperation.java:441)
       at com.google.dart.tools.core.internal.model.CompilationUnitImpl.reconcile(CompilationUnitImpl.java:1357)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy$1.run(DartReconcilingStrategy.java:159)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:134)
       at com.google.dart.tools.ui.internal.text.dart.DartReconcilingStrategy.reconcile(DartReconcilingStrategy.java:102)
       at com.google.dart.tools.ui.internal.text.functions.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:93)
       at com.google.dart.tools.ui.internal.text.functions.DartCompositeReconcilingStrategy.reconcile(DartCompositeReconcilingStrategy.java:120)
       at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:77)
       at com.google.dart.tools.ui.internal.text.functions.DartReconciler.process(DartReconciler.java:387)
       at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)

@DartBot
Copy link

DartBot commented Nov 17, 2011

This comment was originally written by zundel@google.com


Set owner to zundel@google.com.

@DartBot
Copy link

DartBot commented Nov 17, 2011

This comment was originally written by zundel@google.com


Review up at: http://codereview.chromium.org/8588038/


Added Started label.

@DartBot
Copy link

DartBot commented Nov 18, 2011

This comment was originally written by zundel@google.com


Fixed at r1663

@DartBot
Copy link

DartBot commented Nov 21, 2011

This comment was originally written by zundel@google.com


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants