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

Bug 356072

Summary: Wrong generated generic type
Product: [Modeling] TMF Reporter: Serano Colameo <serano.colameo>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Serano Colameo CLA 2011-08-29 09:10:12 EDT
Build Identifier: Xtext 2.0.1

xtend2:
   override String getLoggerName() {
	getClass().canonicalName
   }

java:
  public String getLoggerName() {
    Class<? extends Object> _class = this.getClass();
    String _canonicalName = _class.getCanonicalName();
    return _canonicalName;
  }
  
  
[java] 2188 INFO  IcmWorkflowComponent - MCPWorkflowComponent invoked
[java] 2235 ERROR Mwe2Launcher       - Problems running workflow mdgen.icm.generator.wf.Idl2Icm2JavaGenerator: Guice provision errors:
[java] 1) Error injecting constructor, java.lang.Error: Unresolved compilation problem: 
[java] 	The type Class is not generic; it cannot be parameterized with arguments <? extends Object>
[java]   at mdgen.icm.generator.util.IcmGeneratorExtensions.<init>(IcmGeneratorExtensions.java:52)
[java]   while locating mdgen.icm.generator.util.IcmGeneratorExtensions
[java]     for field at mdgen.icm.generator.ejb21.xjcb.XjcbCommon.icmGenExt(XjcbCommon.java:25)


Reproducible: Always

Steps to Reproduce:
1. see details
2.
3.
Comment 1 Sven Efftinge CLA 2011-08-29 09:16:47 EDT
The Java code seems to be valid. could you please provide more information? If there is a compilation error, maybe you should have a compile time error as well?
Comment 2 Sebastian Zarnekow CLA 2011-09-13 12:08:00 EDT
Serano, did you try to compile the sources with a compliance level Java 1.4 or against a Java 1.4 JDK?

For now I close this one as works_for_me. Please reopen and provide more information of the problem persists.
Comment 3 Karsten Thoms CLA 2017-09-19 16:59:35 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:11:06 EDT
Closing all bugs that were set to RESOLVED before Neon.0