Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368957 - [xtend] Running "Run as -> Java Application" logs an error
Summary: [xtend] Running "Run as -> Java Application" logs an error
Status: CLOSED WORKSFORME
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 08:06 EST by Dennis Huebner CLA
Modified: 2012-11-08 04:56 EST (History)
1 user (show)

See Also:
sven.efftinge: juno+


Attachments

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