eclipse - Xtend: Why isn't compiler generated public Java constructor visible from Xtend code? -


I have an Xtend subclass PubnubMessage that handles one field and an active annotation. I can see the public constructor in the generated Java code, and it correctly accepts an argument for the field, but when I try to call that constructor some other Xtend class like this:

  override successClallback {string channel, object message} {Send (new pub message (message)}}  

I get this error on the constructor call:

  Invalid number argument. Constructor Typ PubNews Message is not applicable for logic (object)  

The default no-arg constructor is not visible, but obviously a default constructor should not even be generated if I

There is no error here:

There is no relevant code:

SocketMessage.xtend

  @JesanData class socket messages {Object no. Country}  

SocketMessage.java (Xtend generated)

  @JesDData @SuppressWarnings ("all") public class SocketMessage {Private last message message; @Jason Creator Public Socket Message (@JesonProperty Last Object Message) {Super (); This.message = Message; }  

PubnubMessage.xtend

  @JesDData class PubnubMessage SocketMessage Extended {}  

PubnubMessage.java (Xtend generated )

  @JasonData @SuppressWarnings ("All") Public Class PubNews Message SocketMessage Expansion {@JsonCreator Public PubnubMessage (@JsonProperty Last Object Message) {Super (Message); }  

I have left the generated Hashod (), equal (), and toasting (). I like everything about this java code, and like I said, I can successfully call it from other Java classes, but not with Extend.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -