dan1st
dan1st
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 12/24/2024 in #java-help
mvn dependency:tree skips an transitive dependency
if you do, use different names
15 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 12/24/2024 in #java-help
mvn dependency:tree skips an transitive dependency
Do the relevant <dependency> blocks have anything other than group id, artifact id and version?
15 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 12/24/2024 in #java-help
mvn dependency:tree skips an transitive dependency
Can you create a new project with 3 modules and copy the relevant parts?
15 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
yeah - I'm telling you because I noticed that there
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>> means that the type parameter must be exactly BBDiscordInteractionEvent - not any subclass and not any superclass
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
Does it expect an IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>> but does not allow IEphemeralPolicy<SomeSubclassOfBBDiscordInteractionEvent<?, ?>>?
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
it checks every 10min and if there are no recent messages, it marks it as "dormant"
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
it doesn't even care about deleted messages
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
I took that code from you
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
but note the comment here:
public abstract class AbstractDiscordInteractionImplementation<Event extends BBDiscordInteractionEvent<?, EphemeralPolicy>, EphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>>> {//THIS IS QUESTIONABLE - should probably be IEphemeralPolicy<? extends BBDiscordInteractionEvent<?, ?>> or IEphemeralPolicy<Event>
public class ButtonInstance{}
}
public abstract class AbstractDiscordInteractionImplementation<Event extends BBDiscordInteractionEvent<?, EphemeralPolicy>, EphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>>> {//THIS IS QUESTIONABLE - should probably be IEphemeralPolicy<? extends BBDiscordInteractionEvent<?, ?>> or IEphemeralPolicy<Event>
public class ButtonInstance{}
}
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
anyways that compiles without an annotation processor
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
yeah I didn't
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
and there was no message within 300min
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
I reopened the post without sending a message
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
bot, this is active - I'm testing
263 replies
JCHJava Community | Help. Code. Learn.
Created by Peter Rader on 12/24/2024 in #java-help
mvn dependency:tree skips an transitive dependency
Can you try creating a minimal reproducer?
15 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
for reproducing later
class GenericInteractionCreateEvent{}
interface IReplyCallback{}

//BBDiscordInteractionEvent is forward declared
public interface IEphemeralPolicy<Event extends BBDiscordInteractionEvent<?, ?>> {}

//generated
public abstract class BBDiscordInteractionEvent<T extends GenericInteractionCreateEvent & IReplyCallback, EphemeralPolicy> extends GenericInteractionCreateEvent implements IReplyCallback {}
class GenericInteractionCreateEvent{}
interface IReplyCallback{}

//BBDiscordInteractionEvent is forward declared
public interface IEphemeralPolicy<Event extends BBDiscordInteractionEvent<?, ?>> {}

//generated
public abstract class BBDiscordInteractionEvent<T extends GenericInteractionCreateEvent & IReplyCallback, EphemeralPolicy> extends GenericInteractionCreateEvent implements IReplyCallback {}
public abstract class AbstractDiscordInteractionImplementation<Event extends BBDiscordInteractionEvent<?, EphemeralPolicy>, EphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>>> {//THIS IS QUESTIONABLE - should probably be IEphemeralPolicy<? extends BBDiscordInteractionEvent<?, ?>> or IEphemeralPolicy<Event>
public class ButtonInstance{}
}

class DEvt extends GenericInteractionCreateEvent implements IReplyCallback{}
class BBActionInteractionEvent extends BBDiscordInteractionEvent<DEvt, BBActionInteractionEvent.ActionEphemeralPolicy>{
interface ActionEphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?,?>>{}
}

class BBButtonInteractionEvent extends BBDiscordInteractionEvent<DEvt, BBActionInteractionEvent.ActionEphemeralPolicy>{}
public abstract class AbstractButtonImplementation extends AbstractDiscordInteractionImplementation<BBButtonInteractionEvent, BBActionInteractionEvent.ActionEphemeralPolicy> {
static class ButtonInstance{}
}

public abstract class AcceptTicketButtonImplementation extends AbstractButtonImplementation {}

//generated
public class AcceptTicketButton extends AbstractButtonImplementation.ButtonInstance {
public AcceptTicketButton() {
}

public static class AcceptTicketExecutor extends AcceptTicketButtonImplementation {
}
}
public abstract class AbstractDiscordInteractionImplementation<Event extends BBDiscordInteractionEvent<?, EphemeralPolicy>, EphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?, ?>>> {//THIS IS QUESTIONABLE - should probably be IEphemeralPolicy<? extends BBDiscordInteractionEvent<?, ?>> or IEphemeralPolicy<Event>
public class ButtonInstance{}
}

class DEvt extends GenericInteractionCreateEvent implements IReplyCallback{}
class BBActionInteractionEvent extends BBDiscordInteractionEvent<DEvt, BBActionInteractionEvent.ActionEphemeralPolicy>{
interface ActionEphemeralPolicy extends IEphemeralPolicy<BBDiscordInteractionEvent<?,?>>{}
}

class BBButtonInteractionEvent extends BBDiscordInteractionEvent<DEvt, BBActionInteractionEvent.ActionEphemeralPolicy>{}
public abstract class AbstractButtonImplementation extends AbstractDiscordInteractionImplementation<BBButtonInteractionEvent, BBActionInteractionEvent.ActionEphemeralPolicy> {
static class ButtonInstance{}
}

public abstract class AcceptTicketButtonImplementation extends AbstractButtonImplementation {}

//generated
public class AcceptTicketButton extends AbstractButtonImplementation.ButtonInstance {
public AcceptTicketButton() {
}

public static class AcceptTicketExecutor extends AcceptTicketButtonImplementation {
}
}
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
What exactly is the signature of BBDiscordInteractionEvent?
263 replies
JCHJava Community | Help. Code. Learn.
Created by Hype_the_Time on 12/12/2024 in #java-help
In Project Annotation Proccessor
but it may be useful to have one of the classes extending the generated abstract class
263 replies