You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using DEV mode and live coding activated, given my resource as:
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@Path("/hello")
public class GreetingResource {
public static final String PROPERTY = "custom.property.name";
@ConfigProperty(name = PROPERTY)
String name;
@GET
@Produces(MediaType.TEXT_PLAIN)
public String sayHello() {
return "Hello, I'm " + name;
}
}
When I run my Quarkus app in DEV mode: mvn quarkus:dev.
And update anything in the GreetingResource, for example, from "Hello" to "Hi", the console prints the following warnings when the changes are detected:
--/ __ \/ / / / _ | / _ \/ //_/ / / / __/
-/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2021-06-02 07:49:13,913 INFO [io.quarkus] (Quarkus Main Thread) getting-started 1.0.0-SNAPSHOT on JVM (powered by Quarkus 999-SNAPSHOT) started in 1.485s. Listening on: http://localhost:8080
2021-06-02 07:49:13,936 INFO [io.quarkus] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2021-06-02 07:49:13,937 INFO [io.quarkus] (Quarkus Main Thread) Installed features: [cdi, resteasy, smallrye-context-propagation]
2021-06-02 07:49:29,055 INFO [io.qua.dep.dev.RuntimeUpdatesProcessor] (vert.x-worker-thread-0) Changed source files detected, recompiling GreetingResource.java
2021-06-02 07:49:29,478 WARN [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,480 WARN [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,480 WARN [io.qua.dep.dev.JavaCompilationProvider] (vert.x-worker-thread-0) unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
reason: class file for org.osgi.annotation.bundle.Requirement$Resolution not found, line -1 in [unknown source]
2021-06-02 07:49:29,488 INFO [io.quarkus] (Quarkus Main Thread) getting-started stopped in 0.003s
The warnings are unexpected as far I can tell.
Moreover, no warnings are thrown if we don't use the @ConfigProperty annotation.
Environment (please complete the following information):
GraalVM version (if different from Java)
Quarkus version or git rev
2.X and 999-SNAPSHOT
Additional context
These warnings were not printed using the Quarkus version 1.13.6.Final.
The text was updated successfully, but these errors were encountered:
We can definitely ignore these warnings, or we could provide our own jboss version the Microprofile MP API jars (like we do with Jakarta).
In any case a user should never see these warnings since there is nothing he or she can do about them
Interesting. I've never noticed this before, and I usually play a lot with this kind of changes. Maybe they are there and my brain just ignores that. I'll check.
Yes, I can see the warning now. I guess because they show up before the Quarkus logo, they are easy to miss.
What a mess. In my opinion this shouldn't be using any OSGI API, but I guess its too late to change that now. Or at least soon.
Creating a copy of the MP Config API, just seems like a waste of time and effort. @geoand are you in favour if we add a plain ignore for sources starting by org.osgi.annotation.bundle? Or make this configurable to ignore sources that start with a certain namespace?
Describe the bug
Using DEV mode and live coding activated, given my resource as:
When I run my Quarkus app in DEV mode:
mvn quarkus:dev
.And update anything in the GreetingResource, for example, from "Hello" to "Hi", the console prints the following warnings when the changes are detected:
The warnings are unexpected as far I can tell.
Moreover, no warnings are thrown if we don't use the
@ConfigProperty
annotation.Environment (please complete the following information):
GraalVM version (if different from Java)
Quarkus version or git rev
2.X and 999-SNAPSHOT
Additional context
These warnings were not printed using the Quarkus version 1.13.6.Final.
The text was updated successfully, but these errors were encountered: