GIN Upgrade many error messages

13 views
Skip to first unread message

Eduardo Eduardo

unread,
Jan 28, 2021, 1:04:31 PM1/28/21
to google-gin
Hi,
I am trying to upgrade legacy gin-1.5.jar to gin-3.0.jar, but I am getting many error messages.
So I tried with 2.1.2 first, and I get these errors too. I have searched a lot on the internet but I don't find anything:( 

Do you have any idea what may be happening here? 

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

         [ERROR] Errors in '/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-5644225947156610295.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/rs/core/client/datasourcemanager/helper/forms/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment.java'

            [ERROR] Line 19: Illegal modifier for the method create; only public, protected, private, abstract, static, final, synchronized, native & strictfp are permitted

            [ERROR] Line 35: Illegal modifier for the method assistedInject_createKey$type$net$datenwerke$rs$core$client$datasourcemanager$helper$forms$DatasourceSelectionFieldFactory$_annotation$$none$$; only public, protected, private, abstract, static, final, synchronized, native & strictfp are permitted

            See snapshot: /var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/net.datenwerke.rs.core.client.datasourcemanager.helper.forms.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment7829039143734376026.java

         Tracing compile failure path for type 'net.datenwerke.rs.core.client.datasourcemanager.helper.forms.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment'

            [ERROR] Errors in '/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-5644225947156610295.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/rs/core/client/datasourcemanager/helper/forms/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment.java'

               [ERROR] Line 19: Illegal modifier for the method create; only public, protected, private, abstract, static, final, synchronized, native & strictfp are permitted

               [ERROR] Line 35: Illegal modifier for the method assistedInject_createKey$type$net$datenwerke$rs$core$client$datasourcemanager$helper$forms$DatasourceSelectionFieldFactory$_annotation$$none$$; only public, protected, private, abstract, static, final, synchronized, native & strictfp are permitted

            [ERROR] Errors in '/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-5644225947156610295.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/rs/client/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector.java'

               [ERROR] net.datenwerke.rs.core.client.datasinkmanager.helper.forms.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment cannot be resolved to a type

            [ERROR] Errors in '/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-5644225947156610295.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/gf/client/treedb/simpleform/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment.java'

               [ERROR] net.datenwerke.rs.client.net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector cannot be resolved to a type



----------


when I open the file: 

/var/folders/jh/jcvxhqhn5zn85lpydnych1_00000gn/T/gwt-codeserver-5644225947156610295.tmp/net.datenwerke.ReportServer/compile-2/gen/net/datenwerke/rs/core/client/datasourcemanager/helper/forms/net_datenwerke_rs_client_RSGinjector_RSGinjectorGinjector_fragment.java


then line 19: I see: 

        public transient net.datenwerke.rs.core.client.datasourcemanager.helper.forms.DatasourceSelectionField create(boolean _0, com.sencha.gxt.widget.core.client.container.Container _1, net.datenwerke.gf.client.treedb.UITree _2, net.datenwerke.rs.core.client.datasourcemanager.DatasourceDao _3, java.lang.Class<? extends net.datenwerke.rs.core.client.datasourcemanager.dto.DatasourceDefinitionDto>[] _4) {

          return assistedInject_createKey$type$net$datenwerke$rs$core$client$datasourcemanager$helper$forms$DatasourceSelectionFieldFactory$_annotation$$none$$(_0, _1, _2, _3, _4);

        }

    };

    return result;


  }


Is it maybe related with "transient" ? or what may be the problem here?

I use guice 4.2.3

Any help would be greatly appreciated.

Regards,

Eduardo

Eduardo Eduardo

unread,
Jan 28, 2021, 2:49:15 PM1/28/21
to google-gin
Hi,

for anyone interested: it turned out to be because of varargs in the factory. The same as here: https://stackoverflow.com/questions/4936803/why-java-methods-with-varargs-identified-as-transient

Regards,
Eduardo

Reply all
Reply to author
Forward
0 new messages