Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319993

Summary: lots of IllegalArgumentExceptions when referencing Java types
Product: [Modeling] TMF Reporter: Robert Wloch <robert>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: robert, sebastian.zarnekow, sven.efftinge
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
grammar producing the IllegalArgumentExceptions
none
example model producing the IllegalArgumentExceptions none

Description Robert Wloch CLA 2010-07-15 10:39:03 EDT
Created attachment 174403 [details]
grammar producing the IllegalArgumentExceptions

Using the attached grammar I started a runtime-Eclipse and created this example model (file also attached):

type modificationDate mapped-to java.util.Date
interface myAggregation mapped-to java.util.Collection

As soon as you insert a new line "type fooBar mapped-to " between the lines above a lot of IllegalArgumentExceptions appear in the console of my workspace-Eclipse. The attached example already contains this additional line and will produce the exceptions as soon as the editor is opened. This is the head of the first IAE that's reported:

java.lang.IllegalArgumentException: interface myAggregation
	at org.eclipse.jdt.core.Signature.createCharArrayTypeSignature(Signature.java:635)
	at org.eclipse.jdt.core.Signature.createTypeSignature(Signature.java:607)
	at org.eclipse.jdt.core.Signature.createTypeSignature(Signature.java:899)
	at org.eclipse.xtext.common.types.access.jdt.JdtTypeProvider.findTypeByName(JdtTypeProvider.java:52)
	at org.eclipse.xtext.common.types.xtext.AbstractTypeScope.getContentByName(AbstractTypeScope.java:42)
	at org.eclipse.xtext.linking.impl.ImportedNamesAdapter$WrappingScope.getContentByName(ImportedNamesAdapter.java:52)
	at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:106)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:85)
Comment 1 Robert Wloch CLA 2010-07-15 10:40:05 EDT
Created attachment 174404 [details]
example model producing the IllegalArgumentExceptions
Comment 2 Sven Efftinge CLA 2010-08-03 03:42:10 EDT
fixed in HEAD
Comment 3 Karsten Thoms CLA 2017-09-19 16:15:04 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.