gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 377 forks source link

hot code replace breaks UIObject.getElement().getStyle() #5261

Closed dankurka closed 9 years ago

dankurka commented 9 years ago

Originally reported on Google Code with ID 5262

Found in GWT Release (e.g. 1.5.3, 1.6 RC):
2.0.4

Encountered on OS / Browser (e.g. WinXP, IE6-7, FF3):
Linux, Debian, Ubuntu 10.04, Firefox 3.6.8

Detailed description (please be as specific as possible):
When debugging my application, and using hot code replace, the call
anyWidget.getElement().getStyle() results in this error:
java.lang.IncompatibleClassChangeError: "Found interface com.google.gwt.user.client.Element,
but class was expected"

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):
anyWidget.getElement().getStyle()

Workaround if you have one:
hot code replacing can't be used if the app contains the above.

Reported by kaefert on 2010-09-08 10:59:40

dankurka commented 9 years ago
I am hitting the same issue in GWT 2.4 while running in DevMode with Eclipse 3.6 under
RHEL5. Is there a plan to fix it? Are there any workarounds for dev mode? I can reproduce
it every time.

Reported by kamotsky on 2012-02-18 00:50:04

dankurka commented 9 years ago
+1 Reproducible in GWT 2.4 every time...

Reported by steven.s.elliott on 2012-04-18 00:09:40

dankurka commented 9 years ago
I wonder why this bug is ignored completly, and left in status "New" without any comment.
But I have a feeling that google might be working on a new dev-mode (see speculations
here: http://code.google.com/p/google-web-toolkit/issues/detail?id=6148)

Reported by kaefert on 2012-04-18 06:36:38

dankurka commented 9 years ago
I can confirm the SuperDevMode with a video: https://plus.google.com/110412141990454266397/posts/Nvr6Se6eAPh

Reported by t.broyer on 2012-04-18 08:22:12

dankurka commented 9 years ago

Reported by t.broyer on 2013-03-29 11:17:47