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

Bug 368957

Summary: [xtend] Running "Run as -> Java Application" logs an error
Product: [Tools] Xtend Reporter: Dennis Huebner <dennis.huebner>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dennis Huebner CLA 2012-01-18 08:06:06 EST
Eclipse SDK
Version: 3.8.0
Build id: I20111209-1447

Xtext
Version: 2.3.0.v201201160741
Build id: N201201160741

Create new Xtend Class:

package de.dhuebner.xcore

class XtendClazz {
	 def static main(String[] args){
	 print("Test")
	}
}


Add return type void:

package de.dhuebner.xcore

class XtendClazz {
	 def static void main(String[] args){
	 print("Test")
	}
}

Save... In the context menu trigger "Run as -> Java Application" action.
An error is logged (stack trace is missing):

null
Error
Wed Jan 18 13:58:18 CET 2012
main() [in XtendClazz [in [Working copy] XtendClazz.java [in de.dhuebner.xcore [in xtend-gen [in test]]]]] does not exist
Comment 1 Sven Efftinge CLA 2012-11-08 04:56:12 EST
Couldn't reproduce this.