alexroldugin / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Class cast exception in style DSL #199

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Code completion proposal after 'extend' without the 'JAVA' keyword results in 
the following exception.

ENTRY org.apache.log4j 2 0 2012-11-11 19:15:41.575
!MESSAGE 
org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvid
er  - Error in polymorphic dispatcher : 
org.eclipselabs.spray.styles.scoping.StyleScopeProvider cannot be cast to 
org.eclipse.xtext.xbase.scoping.XbaseScopeProvider

!STACK 0
java.lang.ClassCastException: 
org.eclipselabs.spray.styles.scoping.StyleScopeProvider cannot be cast to 
org.eclipse.xtext.xbase.scoping.XbaseScopeProvider
    at org.eclipse.xtext.xbase.ui.contentassist.XbaseProposalProvider.getScopeProvider(XbaseProposalProvider.java:232)
    at org.eclipse.xtext.xbase.ui.contentassist.XbaseProposalProvider.lookupCrossReference(XbaseProposalProvider.java:355)
    at org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.lookupCrossReference(AbstractJavaBasedContentProposalProvider.java:205)
    at org.eclipse.xtext.xbase.ui.contentassist.XbaseProposalProvider.lookupCrossReference(XbaseProposalProvider.java:238)
    at org.eclipselabs.spray.styles.ui.contentassist.AbstractStyleProposalProvider.completeStyle_SuperStyleFromDsl(AbstractStyleProposalProvider.java:30)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
    at org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.invokeMethod(AbstractJavaBasedContentProposalProvider.java:271)
    at org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider.completeAssignment(AbstractJavaBasedContentProposalProvider.java:185)
    at org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider$DefaultContentAssistProcessorSwitch.caseAssignment(AbstractContentProposalProvider.java:66)
    at org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider$DefaultContentAssistProcessorSwitch.caseAssignment(AbstractContentProposalProvider.java:1)
    at org.eclipse.xtext.util.XtextSwitch.doSwitch(XtextSwitch.java:164)

Original issue reported on code.google.com by joswar...@gmail.com on 11 Nov 2012 at 6:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 205621ad378f.

Original comment by de.abg.r...@gmail.com on 11 Nov 2012 at 9:53