Maurycy-Sokolowski / gwt-cal

GWT based calendar
0 stars 0 forks source link

Rebind Failure compiling with latest build #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1 removed previous version of gwt-cal (0.9.0beta1)
2. added released version
3. execute full gwt compile 

What is the expected output? What do you see instead?
received error (below). Unable to compile the product

What version of the product are you using? 
Occurs in 0.9.0beta2 and 0.9.0. Does not occur with 0.9.0beta1

On what operating system? Windows 7, gwt-2.0.3, jdk 1.6.0_07-b06

Output of the GWT Compile. 

[java]    [ERROR] Errors in 'jar:file:/C:/dev/projects/VMDirector/war/WEB-
INF/lib/gwt-cal-0.9.0.jar!/com/bradrydzewski/gwt/ca
lendar/client/dayview/DayView.java'
[java]    [ERROR] Line 50:  Rebind 
result 'com.bradrydzewski.gwt.calendar.client.dayview.DayViewStyleManager' 
cannot be abstract
[java]    [ERROR] Errors in 'jar:file:/C:/dev/projects/VMDirector/war/WEB-
INF/lib/gwt-cal-0.9.0.jar!/com/bradrydzewski/gwt/ca
lendar/client/monthview/MonthView.java'
[java]       [ERROR] Line 154:  Rebind 
result 'com.bradrydzewski.gwt.calendar.client.monthview.MonthViewStyleManag
er' cannotbe abstract
[java]    [ERROR] Cannot proceed due to previous errors

Original issue reported on code.google.com by aazzin...@gmail.com on 30 May 2010 at 7:26

GoogleCodeExporter commented 9 years ago
I'm having trouble repeating this. I am able to use gwt version 2.0.3 as well 
as 
2.1.0M1. Is there any more useful data provided in your IDE or console output?

Original comment by Brad.Ryd...@gmail.com on 1 Jun 2010 at 10:06

GoogleCodeExporter commented 9 years ago
I have done some research on the problem and found this:
> Hi,
>
> I'm trying to instantiate an abstract class with GWT.create(), however
> the compiler tells me that rebind results can't be abstract. Is there
> an explanation for this? If rebind results can be interfaces, why not
> abstract classes?

You're missing a <generate-with> or <replace-with> deferred-binding
rule in your module(s) to generate/"redirect" to a non-abstract,
"default instantiable" class.
When no <generate-with> or <replace-with> rule match, GWT.create()
uses a "new TheClass()" as a last resort, so it has to be concrete
(non-abstract).

From what I can see in the "source" via eclipse, you are using the 
GWT.create(); Is 
there something in your module.xml regarding the generate-with? 
I have attached my module.xml as well for comparision.

Original comment by aazzin...@gmail.com on 6 Jun 2010 at 3:11

Attachments:

GoogleCodeExporter commented 9 years ago
I took a look at your module xml file. We are no longer supporting the ms 
outlook 2000 
theme... I meant to remove it from trunk. If you use the google or ical theme 
you 
should no longer have this error.

Original comment by Brad.Ryd...@gmail.com on 7 Jun 2010 at 4:53

GoogleCodeExporter commented 9 years ago
That did it. Thanks for the help

Original comment by aazzin...@gmail.com on 10 Jun 2010 at 11:33