Skip to content

MvcFactory deprecated but used in generated mvc-classes by jooby-apt #3695

@hofrichter

Description

@hofrichter

Preamble

Commit: c801bb3 marked the MvcFactory as deprecated. Please don't forget to change the jooby-apt.

At the moment the documentated examples produces deprecation notices when compiling the sources with mvn compile as shown below:

{
    mvc(new Controller_());
}
 <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <annotationProcessorPaths>
                        <path>
                            <groupId>io.jooby</groupId>
                            <artifactId>jooby-apt</artifactId>
                            <version>${jooby.version}</version>
                        </path>
                    </annotationProcessorPaths>
#> mvn clean install
[INFO] --- compiler:3.13.0:compile (default-compile) @ sugarfree-core ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 9 source files with javac [debug parameters target 21] to target\classes
[WARNING] .../Controller_.java:[4,68] io.jooby.MvcFactory in io.jooby ist veraltet und wurde zum Entfernen markiert

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions