Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » The method x() of type y must override a superclass method
The method x() of type y must override a superclass method [message #1740496] Mon, 15 August 2016 06:32 Go to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
I am using an interface, but for some reason, if I do a clean build (Project -> Clean) an error "The method Dead) of type y must override a superclass method" occurs. If I "touch" the files that contains the errors, Eclipse automatically builds it again and the error is fixed.

The error type is an "Xtend Problem". Is this an existing bug? What workaround is available for this?

I am not sure if this is relevant but I am using Java1.7 and Xtend version 2.9.1.v201512180746.

[Updated on: Mon, 15 August 2016 06:56]

Report message to a moderator

Re: The method x() of type y must override a superclass method [message #1740497 is a reply to message #1740496] Mon, 15 August 2016 07:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
can you please give a complete reproducable example

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The method x() of type y must override a superclass method [message #1741099 is a reply to message #1740497] Tue, 23 August 2016 06:12 Go to previous messageGo to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Hi Christian,

I have attached the project that reproduces the problems I am seeing.
I am using eclipse-dsl-luna-SR2-win32 with Java 1.7, though I have tried eclipse-dsl-neon-R-win32 and the problem is still there.

The code might not make sense as this is a scaled-down version of the whole project.
  • Attachment: xtext.7z
    (Size: 1.41MB, Downloaded 84 times)
Re: The method x() of type y must override a superclass method [message #1741726 is a reply to message #1741099] Mon, 29 August 2016 03:05 Go to previous messageGo to next message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
Hi, I haven't solved this problem yet. Anyone have any idea how to fix this? Or any workaround available? Smile
Re: The method x() of type y must override a superclass method [message #1741727 is a reply to message #1741726] Mon, 29 August 2016 03:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
welll 7z is a quite unhandy file extension.
unfortunately i dont know how to provoke the error when importing.
can you give more hints where the error happens on your side?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The method x() of type y must override a superclass method [message #1741728 is a reply to message #1741727] Mon, 29 August 2016 04:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
well when doing a clean i get some errors.
seems like xcore+xtend+java dont like each other that much.
it seems to help to separate out the xcore stuff out to a separate bundle.
can you please create a bug


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The method x() of type y must override a superclass method [message #1742596 is a reply to message #1741728] Tue, 06 September 2016 03:40 Go to previous message
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
I have filed a bug.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=500889

A .zip is also attached there.
Thanks!
Previous Topic:Action during start of Xtext Project
Next Topic:Bidirectional imports
Goto Forum:
  


Current Time: Thu Apr 25 16:12:48 GMT 2024

Powered by FUDForum. Page generated in 0.04197 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top