| Summary: | lots of IllegalArgumentExceptions when referencing Java types | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Robert Wloch <robert> | ||||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | robert, sebastian.zarnekow, sven.efftinge | ||||||
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
|
||||||
| Target Milestone: | SR1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 174404 [details]
example model producing the IllegalArgumentExceptions
fixed in HEAD Closing bug which were set to RESOLVED before Eclipse Neon.0. |
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)