Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ezyhttp-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-server-boot</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-server-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.lang.reflect.Method;
import java.util.concurrent.atomic.AtomicInteger;

import static com.tvd12.reflections.ReflectionUtils.toClass;

import com.tvd12.ezyfox.asm.EzyFunction;
import com.tvd12.ezyfox.asm.EzyFunction.EzyBody;
import com.tvd12.ezyfox.asm.EzyInstruction;
Expand Down Expand Up @@ -67,7 +69,7 @@ protected UncaughtExceptionHandler doImplement() throws Exception {
implClass.addMethod(CtNewMethod.make(setExceptionHandlerMethodContent, implClass));
implClass.addMethod(CtNewMethod.make(handleExceptionMethodContent, implClass));
implClass.addMethod(CtNewMethod.make(getResponseContentTypeMethodContent, implClass));
Class answerClass = implClass.toClass();
Class answerClass = toClass(implClass, getSuperClass());
implClass.detach();
AsmUncaughtExceptionHandler handler = (AsmUncaughtExceptionHandler)
answerClass.newInstance();
Expand Down Expand Up @@ -173,7 +175,8 @@ protected Class<?> getSuperClass() {
}

protected String getImplClassName() {
return exceptionHandler.getClassSimpleName()
return getSuperClass().getPackage().getName()
+ "." + exceptionHandler.getClassSimpleName()
+ "$" + handlerMethod.getName() + "$ExceptionHandler$AutoImpl$"
+ COUNT.incrementAndGet();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.tvd12.ezyhttp.server.core.asm;

import static com.tvd12.ezyfox.io.EzyStrings.quote;
import static com.tvd12.reflections.ReflectionUtils.toClass;

import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
Expand Down Expand Up @@ -104,7 +105,7 @@ protected RequestHandler doImplement() throws Exception {
implClass.addMethod(CtNewMethod.make(getRequestURIMethodContent, implClass));
implClass.addMethod(CtNewMethod.make(getResponseContentTypeMethodContent, implClass));
implClass.addMethod(CtNewMethod.make(isAsyncMethodContent, implClass));
Class answerClass = implClass.toClass();
Class answerClass = toClass(implClass, getSuperClass());
implClass.detach();
RequestHandler handler = (RequestHandler) answerClass.newInstance();
handler.setHandlerMethod(handlerMethod.getMethod().getMethod());
Expand Down Expand Up @@ -418,7 +419,8 @@ protected Class<?> getSuperClass() {
}

protected String getImplClassName() {
return controller.getControllerName()
return getSuperClass().getPackage().getName()
+ "." + controller.getControllerName()
+ "$" + handlerMethod.getName() + "$Handler$AutoImpl$" + COUNT.incrementAndGet();
}

Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-graphql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>
<artifactId>ezyhttp-server-graphql</artifactId>
<name>ezyhttp-server-graphql</name>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-server-jetty</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-management/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>
<artifactId>ezyhttp-server-management</artifactId>
<name>ezyhttp-server-management</name>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-thymeleaf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>
<artifactId>ezyhttp-server-thymeleaf</artifactId>
<name>ezyhttp-server-thymeleaf</name>
Expand Down
2 changes: 1 addition & 1 deletion ezyhttp-server-tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
</parent>

<artifactId>ezyhttp-server-tomcat</artifactId>
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<parent>
<groupId>com.tvd12</groupId>
<artifactId>ezyfox</artifactId>
<version>1.0.7</version>
<version>1.0.8</version>
</parent>
<artifactId>ezyhttp</artifactId>
<version>1.5.5</version>
<version>1.5.6</version>
<packaging>pom</packaging>

<name>ezyhttp</name>
Expand Down Expand Up @@ -64,11 +64,11 @@
</developers>

<properties>
<ezy.version>1.3.0</ezy.version>
<ezy.version>1.3.1</ezy.version>
<javax.servlet.version>4.0.1</javax.servlet.version>
<jetty.version>9.4.58.v20250814</jetty.version>
<tomcat.version>8.5.100</tomcat.version>
<thymeleaf.version>3.1.3.RELEASE</thymeleaf.version>
<thymeleaf.version>3.1.5.RELEASE</thymeleaf.version>
<layout.dialect.version>3.4.0</layout.dialect.version>
</properties>

Expand All @@ -77,7 +77,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.2</version>
<version>${maven.checkstyle.plugin.version}</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
Expand Down
Loading