|
Re: Status of JAXB in JAX-RS 2.1
I do not say we should remove JAXB, I just wanted to ask because it was in the JSR 370 charter. I also do not see a big benefit of removing JAXB. The only problem I see is running JAX-RS 2.1 on Java
I do not say we should remove JAXB, I just wanted to ask because it was in the JSR 370 charter. I also do not see a big benefit of removing JAXB. The only problem I see is running JAX-RS 2.1 on Java
|
By
Markus KARG
·
#178
·
|
|
Re: Status of JAXB in JAX-RS 2.1
that depends on how the application is ran (on Java 9).
If the app is on classpath, the *user* has to --add-module java.xml.bind. Nobody can do that for him.
If the app is on module
that depends on how the application is ran (on Java 9).
If the app is on classpath, the *user* has to --add-module java.xml.bind. Nobody can do that for him.
If the app is on module
|
By
Pavel Bucek
·
#179
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Pavel,
my point is that the application *user* simply does not know that he must use --add-module when running any binary application on Java 9, as the *user* has no knowledge that JAXB is used
Pavel,
my point is that the application *user* simply does not know that he must use --add-module when running any binary application on Java 9, as the *user* has no knowledge that JAXB is used
|
By
Markus KARG
·
#180
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Well.. the spec says nothing about running on Java 9, since Java 9 won't be final when JAX-RS 2.1 is released.
When a user want's to run on Java 9, it is expected that he knows what
Well.. the spec says nothing about running on Java 9, since Java 9 won't be final when JAX-RS 2.1 is released.
When a user want's to run on Java 9, it is expected that he knows what
|
By
Pavel Bucek
·
#181
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Pavel,
this complete Jigsaw topic is a mess for the end user and I wonder what the OpenJDK guys wanted to reach with making JAXB optional… In reality no end user knows anything about Jigsaw (end
Pavel,
this complete Jigsaw topic is a mess for the end user and I wonder what the OpenJDK guys wanted to reach with making JAXB optional… In reality no end user knows anything about Jigsaw (end
|
By
Markus KARG
·
#182
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Markus,
your description of user definitely doesn't read the spec document, javadocs, etc. So what exactly would be achieved by putting a note into the spec document?
My
Markus,
your description of user definitely doesn't read the spec document, javadocs, etc. So what exactly would be achieved by putting a note into the spec document?
My
|
By
Pavel Bucek
·
#183
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Pavel,
it seems you just have a different interpretation of the word "end user". At least I, as a car end user, do neither read the specification of pistons, nor does my car vendor add a note to
Pavel,
it seems you just have a different interpretation of the word "end user". At least I, as a car end user, do neither read the specification of pistons, nor does my car vendor add a note to
|
By
Markus KARG
·
#184
·
|
|
Re: Status of JAXB in JAX-RS 2.1
JAXB dependency cannot be declared optional, that's a fact. Even if everyone from the EG would be for that, it won't be done. Reasons were already stated on this list.
We are not going
JAXB dependency cannot be declared optional, that's a fact. Even if everyone from the EG would be for that, it won't be done. Reasons were already stated on this list.
We are not going
|
By
Pavel Bucek
·
#185
·
|
|
Re: Status of JAXB in JAX-RS 2.1
Yes I know that the target platform for Java EE 8 is Java SE 8, but what I talked about solely was the section about Java SE deployment of JAX-RS 2.1 spec, which does *not* say Java 8. So maybe we
Yes I know that the target platform for Java EE 8 is Java SE 8, but what I talked about solely was the section about Java SE deployment of JAX-RS 2.1 spec, which does *not* say Java 8. So maybe we
|
By
Markus KARG
·
#186
·
|
|
JAX-RS and @ValidateOnExecution
Hey everyone,
I've a question regarding JAX-RS and @ValidateOnExecution. Please have a look at the following code:
@GET
@Path("/foobar")
@ValidateOnExecution(type = ExecutableType.NONE)
public
Hey everyone,
I've a question regarding JAX-RS and @ValidateOnExecution. Please have a look at the following code:
@GET
@Path("/foobar")
@ValidateOnExecution(type = ExecutableType.NONE)
public
|
By
Christian Kaltepoth
·
#187
·
|
|
Re: JAX-RS and @ValidateOnExecution
Hi Christian,
seems to be a Jersey bug.
Regards,
Pavel
Hi Christian,
seems to be a Jersey bug.
Regards,
Pavel
|
By
Pavel Bucek
·
#188
·
|
|
Re: JAX-RS and @ValidateOnExecution
Do we have BeanValidation expert here? ;) Gunnar?
I believe the implementation should skip the method validation when
@ValidateOnExecution(type = ExecutableType.NONE) is on the method
Do we have BeanValidation expert here? ;) Gunnar?
I believe the implementation should skip the method validation when
@ValidateOnExecution(type = ExecutableType.NONE) is on the method
|
By
Pavel Bucek
·
#189
·
|
|
Re: JAX-RS and @ValidateOnExecution
Hi Pavel, All
CXF ignores this validation completely which is probably not makes its BeanVal code very pure (I'll have a look at the code though), but
just out of
Hi Pavel, All
CXF ignores this validation completely which is probably not makes its BeanVal code very pure (I'll have a look at the code though), but
just out of
|
By
Sergey Beryozkin
·
#190
·
|
|
Re: JAX-RS and @ValidateOnExecution
Sorry, I was referring to @ValidateOnException...
Sorry, I was referring to @ValidateOnException...
|
By
Sergey Beryozkin
·
#191
·
|
|
Re: JAX-RS and @ValidateOnExecution
One use case for this is to allow for more fine-grained exception handling. As in the case of MVC 1.0 we want to allow the controller methods to be handling exceptions in the cases where the catch-all
One use case for this is to allow for more fine-grained exception handling. As in the case of MVC 1.0 we want to allow the controller methods to be handling exceptions in the cases where the catch-all
|
By
Ivar Grimstad
·
#192
·
|
|
Re: JAX-RS and @ValidateOnExecution
Hi
Thanks for the explanation, though I'm still not sure why removing @NotNull can not achieve the same goal ? The controller method will get the control, check for null/etc ?
Hi
Thanks for the explanation, though I'm still not sure why removing @NotNull can not achieve the same goal ? The controller method will get the control, check for null/etc ?
|
By
Sergey Beryozkin
·
#193
·
|
|
Re: JAX-RS and @ValidateOnExecution
Hi,
We still want Bean Validation, but we don't want the JAX-RS runtime to do the validation for us as this will be handled by the MVC implementation and provided for the application developer in the
Hi,
We still want Bean Validation, but we don't want the JAX-RS runtime to do the validation for us as this will be handled by the MVC implementation and provided for the application developer in the
|
By
Ivar Grimstad
·
#194
·
|
|
Re: JAX-RS and @ValidateOnExecution
Thanks, see it now...
Sergey
Thanks, see it now...
Sergey
|
By
Sergey Beryozkin
·
#195
·
|
|
Re: JAX-RS and @ValidateOnExecution
Sergey,
I agree that disabling validation using @ValidateOnExecution is some kind of "special case".
However, the JAX-RS spec explicitly mentions that getter methods aren't validated by default
Sergey,
I agree that disabling validation using @ValidateOnExecution is some kind of "special case".
However, the JAX-RS spec explicitly mentions that getter methods aren't validated by default
|
By
Christian Kaltepoth
·
#196
·
|
|
Re: JAX-RS and @ValidateOnExecution
2017-06-20 9:34 GMT+02:00 Pavel Bucek <pavel.bucek@...>:
That's right. So if Jersey still is executing the validation in this
case, it seems to be a bug.
Using this on a method (as opposed to
2017-06-20 9:34 GMT+02:00 Pavel Bucek <pavel.bucek@...>:
That's right. So if Jersey still is executing the validation in this
case, it seems to be a bug.
Using this on a method (as opposed to
|
By
Gunnar Morling
·
#197
·
|