add exception
diff --git a/java_exception.go b/java_exception.go
index 1a04d1d..abe725d 100644
--- a/java_exception.go
+++ b/java_exception.go
@@ -105,8 +105,6 @@
RegisterPOJO(&java_exception.IllegalFormatCodePointException{})
RegisterPOJO(&java_exception.MissingFormatArgumentException{})
RegisterPOJO(&java_exception.MissingFormatWidthException{})
- RegisterPOJO(&java_exception.IncompleteAnnotationException{})
- RegisterPOJO(&java_exception.AnnotationTypeMismatchException{})
RegisterPOJO(&java_exception.DubboGenericException{})
RegisterPOJO(&java_exception.IncompleteAnnotationException{})
RegisterPOJO(&java_exception.AnnotationTypeMismatchException{})
diff --git a/java_exception_test.go b/java_exception_test.go
index 4a326f2..6af7841 100644
--- a/java_exception_test.go
+++ b/java_exception_test.go
@@ -106,10 +106,7 @@
doTestException(t, "throw_IllegalFormatCodePointException", "Code point = 0x1")
doTestException(t, "throw_MissingFormatArgumentException", "Format specifier 'MissingFormatArgumentException'")
doTestException(t, "throw_MissingFormatWidthException", "MissingFormatWidthException")
- doTestException(t, "throw_IncompleteAnnotationException", "java.lang.Override missing element IncompleteAnnotationException")
- doTestException(t, "throw_AnnotationTypeMismatchException", "Incorrectly typed data found for annotation element null (Found data of type AnnotationTypeMismatchException)")
doTestException(t, "throw_DubboGenericException", "DubboGenericException")
- doTestException(t, "throw_IncompleteAnnotationException", "test.projo.TestAnnotation missing element IncompleteAnnotationException")
doTestException(t, "throw_IncompleteAnnotationException", "java.lang.Override missing element IncompleteAnnotationException")
doTestException(t, "throw_AnnotationTypeMismatchException", "Incorrectly typed data found for annotation element null (Found data of type AnnotationTypeMismatchException)")
}
diff --git a/test_hessian/src/main/java/test/TestThrowable.java b/test_hessian/src/main/java/test/TestThrowable.java
index 2819923..7e40b7e 100644
--- a/test_hessian/src/main/java/test/TestThrowable.java
+++ b/test_hessian/src/main/java/test/TestThrowable.java
@@ -394,22 +394,13 @@
return new MissingFormatWidthException("MissingFormatWidthException");
}
- public static Object throw_IncompleteAnnotationException() {
- return new IncompleteAnnotationException(Override.class, "IncompleteAnnotationException");
- }
-
-
- public static Object throw_AnnotationTypeMismatchException() {
- return new AnnotationTypeMismatchException(TestEnum.class.getEnclosingMethod(), "AnnotationTypeMismatchException");
- }
-
public static Object throw_DubboGenericException() {
return new GenericException("DubboGenericExceptionClass","DubboGenericException");
}
- public static Object throw_IncompleteAnnotationException() {
- return new IncompleteAnnotationException(Override.class, "IncompleteAnnotationException");
- }
+ public static Object throw_IncompleteAnnotationException() {
+ return new IncompleteAnnotationException(Override.class, "IncompleteAnnotationException");
+ }
public static Object throw_AnnotationTypeMismatchException() {
return new AnnotationTypeMismatchException(Override.class.getEnclosingMethod(), "AnnotationTypeMismatchException");