snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Resteasy fails to load abstract subclass of javax.ws.rs.core.Application #315

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Describe the bug

Since 1.13.0.Final an application using an abstract Base Implementation of an javax.ws.rs.core.Application will not start anymore.

Expected behavior

The Application should start properly as with previous versions of quarkus (< 1.13.0.Fiinal).

Actual behavior

Starting the application won't work because of the following exception. This either with maven or intellij quarkus tools.

[error]: Build step io.quarkus.resteasy.server.common.deployment.ResteasyServerCommonProcessor#build threw an exception: java.lang.RuntimeException: Unable to handle class: ch.upfront.BaseApplication

This happens although the super class is abstract.

To Reproduce

Simple sample project is attached. rs-application-demo.zip

Steps to reproduce the behavior:

  1. run mvn clean install -> causes exception mentioned above
  2. change class ch.upfront.GreetingApplication by changing the extend to javax.ws.rs.core.Application instead of ch.upfront.BaseApplication
  3. Delete file ch.upfront.BaseApplication
  4. run mvn clean install -> starts normally

second variation to reproduce:

  1. run mvn clean install -> causes exception mentioned above
  2. change quarkus version in pom.xml from 1.13.0.Final to 1.12.2.Final
  3. run mvn clean install -> starts normally

Configuration

Standard configuration

Screenshots

no screenshots

Environment (please complete the following information):

Output of uname -a or ver

MSYS_NT-10.0-19042 DESKTOP-JPL09S5 3.1.7-340.x86_64 2020-10-23 13:08 UTC x86_64 Msys

Output of java -version

openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)

GraalVM version (if different from Java)

not used

Quarkus version or git rev

1.13.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)


https://github.com/quarkusio/quarkus/issues/16228


$upstream:16228$