Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319993 - lots of IllegalArgumentExceptions when referencing Java types
Summary: lots of IllegalArgumentExceptions when referencing Java types
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 10:39 EDT by Robert Wloch CLA
Modified: 2017-09-19 16:15 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: helios+


Attachments
grammar producing the IllegalArgumentExceptions (499 bytes, application/octet-stream)
2010-07-15 10:39 EDT, Robert Wloch CLA
no flags Details
example model producing the IllegalArgumentExceptions (125 bytes, application/octet-stream)
2010-07-15 10:40 EDT, Robert Wloch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.