Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More fixes for module mode #117

Merged
merged 1 commit into from
Jul 8, 2024
Merged

More fixes for module mode #117

merged 1 commit into from
Jul 8, 2024

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Jul 5, 2024

Fixes a problem where the annotation processor cannot be instantiated in a modular application. Also fixes this exception which occurs in module mode:

java.lang.NullPointerException: Cannot invoke "javax.lang.model.element.ModuleElement.getClass()" because "module" is null
  	at jdk.compiler/com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:167)
  	at jdk.compiler/com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:88)
  	at org.jboss.logging.processor.apt.MessageInterfaceFactory$AptMessageInterface.<init>(MessageInterfaceFactory.java:146)
  	at org.jboss.logging.processor.apt.MessageInterfaceFactory.of(MessageInterfaceFactory.java:98)
  	at org.jboss.logging.processor.apt.LoggingToolsProcessor.doProcess(LoggingToolsProcessor.java:200)
  	at org.jboss.logging.processor.apt.LoggingToolsProcessor.process(LoggingToolsProcessor.java:165)
  	(...)

Verified

This commit was signed with the committer’s verified signature.
Honny1 Jan Rodák
@dmlloyd dmlloyd requested a review from jamezp as a code owner July 5, 2024 13:35
@jamezp jamezp merged commit 2c33325 into jboss-logging:main Jul 8, 2024
9 checks passed
@dmlloyd dmlloyd deleted the fix-mods branch July 9, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants