fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
42 stars 41 forks source link

Linker failure in GWT 2.5 due to "-" in module name. #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am building from source. 

1. Add source code to Eclipse project
2. Switch to GWT 2.5
3. Debug within Eclipse

The following is shown in the console:

com.google.gwt.dev.js.JsParserException: 
StandardLinkerContext.optimizeJavaScript(17): missing ( before function 
parameters
> function com_allen_sauer_gwt_dnd_gwt-dnd() {
> -------------------------------------^

I'm guessing you may need to change it to gwt_dnd instead of gwt-dnd (note that 
hyphens are not allowed in Java packages or class names either).

Also, gwt-log included as a library (jar) doesn't suffer from this problem.

Original issue reported on code.google.com by Jez.Ch...@gmail.com on 7 Nov 2012 at 1:20

GoogleCodeExporter commented 9 years ago
I just build a GWT 2.5.0 version and did not run into this issue.

The download is available in the usual place:
  http://code.google.com/p/gwt-dnd/downloads/list

Original comment by fredsa on 1 Dec 2012 at 6:54

GoogleCodeExporter commented 9 years ago
I have the same issue.
I copied all classes from gwt-dnd.jar into my work project and during app build 
I got the same error. Renaming gwt-dnd.gwt.xml into gwt_dnd.gwt.xml (and ofc 
updating inherits element) solved the problem for me.
Compiled gwt-dnd version works correctly.

Original comment by eugene.r...@gmail.com on 17 Mar 2014 at 12:48

GoogleCodeExporter commented 9 years ago
Please try again with GWT 2.6.0

Original comment by fredsa on 6 Apr 2014 at 8:05

pgscada commented 7 years ago

The same error occures if the module name is "public"