GWT: reference to the deprecated SerializableException class

When using GWT, I get the following warning:

Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException'

While this is just a warning, he is dead, tired of watching every time I launch a project.

A warning occurs because my RPC raises java.lang.Exception and thus never uses a SerializableException, but GWT is not smart enough to figure it out.

Is it possible to disable the warning or fix it, in addition to compiling my own version of the gwt-user / gwt-servlet libraries?

Thank.

Edit: To clarify, this is GWT 2.0, and the project starts from the Google Plugin in Eclipse.

+3
source share
4 answers

- Google GWT SerializationException, . javadocs SerializableException , Exception :/ GWT ?

. GWT 1.5, Exception Serializable [SerializableException]

+2

Lombardi , .

, Google , Exception - , , JavaScript Exception , , .

, ( ). RPC UncaughtExceptionHandler.

+1

loglevel gwt. , "", , . eclipse, :

  • Google → GWT Complie
0

SerializationException , SerializationException , RPC. , ​​ .

The main problem is that the compiler generates unnecessary code. To avoid the error, just make sure your code is no longer using SerializableExceptionand add the following line to your module descriptor.

<extend-configuration-property name="rpc.blacklist" value="com.google.gwt.user.client.rpc.SerializableException"/>

Once the compilation problem is fixed, you can delete the line again. Here is a link to a question you may wish: http://code.google.com/p/google-web-toolkit/issues/detail?id=4438

0
source

Source: https://habr.com/ru/post/1734669/


All Articles