[gwt-contrib] Re: Nextgen GWT/JS Interop (Public) (google-web-tool...@googlegroups.com)
Hi Goktug, nice approach. IMHO getters and setters should not be required to be annotated by @JsProperty. Instead a method looking like a getter or setter that is actually not a property accessor should be annotated (Convention over configuration). I would love to see this coming... Cheers Jörg -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] support for JSR 310 / java.time created
Hi there, I posted in GWT community on g+ about my *JSR 310* backport I created and my super-sourced GWT code. Stephen Habermann posted: Wow, 13000 passing tests is amazing. Great work! You should post about your progress on the gwt-contrib list (I am still unsure about when to post to groups and when g+) So here I am. You can find all my work and changes from here: https://github.com/m-m-m/mmm/issues/83 I am looking forward for your feedback and discussion. It will be my pleasure to contribute my work to the GWT project. However, I am not clear about the permissions required from the original authors of threeten since I simply forked their codebase and keept their headers and copyrights in my project. For GWT this has to be transferred and I assume we would need permissions from Stephen Colebourne, Michael Santos and all the others. I could not find an issue in GWT tracker for the java.time support. Shall I create one? Cheers Jörg -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] support for JSR 310 / java.time created
John A. Tamplin: > There are a few things which are going to be very hard to support As > Jens mentioned, ZoneRulesProvider needs an async API so it can fetch the > necessary data from a server, so we can't provide a compatible API. We can > provide a GWT-specific version (under a different package), so shared code > can deal with ZoneRules/etc but getting them will be different in client vs > server code. > I simply removed the support for zone rules as well as for DateTimeFormatter[Builder], the global calendar stuff (Hijrah, Japanese, Minguo and ThaiBuddhist) and the custom Java serialization stuff. If someone wants to rewrite this for GWT please join in. The most important uses cases for me are to be able to deal with Instant, LocalDate, LocalTime, LocalDateTime, OffsetDateTime, OffsetTime, OffsetDate and transfer it between client and server. Further ISO input and output is required (e.g. for HTML5 date/time widgets that produce ISO8601). Also I (removed) the global calendar stuff for GWT. All the features I have removed are really hard to build with GWT and might overload the client. Such features should either be available natively via JS or not at all. IMHO this is why GWT never supported java.util.Calendar. So my approach is a pragmatic one with focus on making things happen for the main features. Who really needs time-zone transformation in a web-client? Typically a date, time or date/time > > Have you looked at generated code size? There are also a few places where > it appears to rely on overflow behavior, which isn't guaranteed in GWT as > an int is actually represented by a JS Number under the hood. > > Not yet. I will have a look in the next future. What would be the best way. Write a simple entry point that prints current date and time and parses some example date/time strings? However, I am an open source developer and spend all my nights for pleasure of development. My focus is on a project that should add value to me some day. To do that I am working on a web framework that is based on GWT. Therefore I wrote various HTML5 and other widgets I missed in GWT. For the new HTML5 date/time widgets I wanted to have reasonable data objects and these are neither String nor java.util.Date. So I found java.time and wanted to use this in GWT. It is working for me now. I will do some further support here, but do not expect me to be the man leading this to perfection in GWT 4.0. Cheers Jörg -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gwt-contrib] support for JSR 310 / java.time created
http://code.google.com/p/google-web-toolkit/issues/detail?id=8486 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[gwt-contrib] Unable to get GwtTestCase back up running
Hi there, I am maintaining my project and did some upgrades including gwt 2.8.2 from 2.7.0. Now my JUnit based on GwtTestCase is failing with: java.lang.NoSuchFieldError: FIREFOX_38 at com.google.gwt.junit.RunStyleHtmlUnit.(RunStyleHtmlUnit.java:203) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.google.gwt.junit.JUnitShell.createRunStyle(JUnitShell.java:1181) at com.google.gwt.junit.JUnitShell.doStartup(JUnitShell.java:942) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913) at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:698) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) I found out that gwt-dev is depending on htmlunit 2.19 but due some dependency management I was using 2.29 instead. So I overrode this again in my pom.xml: net.sourceforge.htmlunit htmlunit 2.19 test Now I am getting this error: java.lang.NoClassDefFoundError: com/gargoylesoftware/htmlunit/BrowserVersion at com.google.gwt.junit.RunStyleHtmlUnit.(RunStyleHtmlUnit.java:202) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.google.gwt.junit.JUnitShell.createRunStyle(JUnitShell.java:1181) at com.google.gwt.junit.JUnitShell.doStartup(JUnitShell.java:942) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913) at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:698) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) Caused by: java.lang.ClassNotFoundException: com.gargoylesoftware.htmlunit.BrowserVersion at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 24 more What is also interesting: When I do go to BrowserVersion.class in the htmlunit-2.29.jar of my maven-dependencies in Eclipse, it opens fine and shows the sources. However, with version 2.19 Eclipse does not open BrowserVersion.class properly and instead shows: java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:60) ... So to me it seems like this: -gwt-dev is hardwired against htmlunit 2.19 and refers to specific BrowserVersion constant fields that are gone in
[gwt-contrib] Re: Unable to get GwtTestCase back up running
Indeed. I downloaded htmlunit 2.19 from here: https://sourceforge.net/projects/htmlunit/ after replacing the JAR in my local maven repo it works or at least I get a more promising error: com.google.gwt.junit.JUnitFatalLaunchException: The test class 'net.sf.mmm.util.gwt.UtilCoreGwtTest' was not found in module 'net.sf.mmm.util.gwt.UtilCoreGwtTest'; no compilation unit for that type was seen at com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:734) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1327) at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1283) at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672) at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at junit.framework.TestSuite.run(TestSuite.java:247) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) However from a perspective of a maven user gwt 2.8.x is kind of broken... -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/caca4bb6-1574-432c-84ff-fc8797396406%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[gwt-contrib] Re: Unable to get GwtTestCase back up running
Thanks Colin for your quick response. The broken JAR was 2.619.380 bytes. The correct JAR is 1.906.761 bytes. I am not using an intermediate maven repo (nexus, artifactory, archiva). However, I moved/backuped the JAR once more and now maven downloaded a correct version. Whatever the reason for that error was. I hope it is not reproducable and we can ignore that. So my assumption was wrong and then GWT release is fine. Am Mittwoch, 29. August 2018 23:39:07 UTC+2 schrieb Colin Alworth: > > For what its worth, I'm not seeing any such issues in opening classes > within the 2.19 jar (source or binary) - any chance you've just got a > corrupt local copy, or that your org has a maven repo with a corrupt copy? > > On Wednesday, August 29, 2018 at 4:24:59 PM UTC-5, Jörg Hohwiller wrote: >> >> Hi there, >> I am maintaining my project and did some upgrades including gwt 2.8.2 >> from 2.7.0. >> Now my JUnit based on GwtTestCase is failing with: >> >> java.lang.NoSuchFieldError: FIREFOX_38 >> at >> com.google.gwt.junit.RunStyleHtmlUnit.(RunStyleHtmlUnit.java:203) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:264) >> at >> com.google.gwt.junit.JUnitShell.createRunStyle(JUnitShell.java:1181) >> at com.google.gwt.junit.JUnitShell.doStartup(JUnitShell.java:942) >> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913) >> at >> com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:698) >> at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672) >> at >> com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421) >> at junit.framework.TestCase.runBare(TestCase.java:141) >> at junit.framework.TestResult$1.protect(TestResult.java:122) >> at junit.framework.TestResult.runProtected(TestResult.java:142) >> at junit.framework.TestResult.run(TestResult.java:125) >> at junit.framework.TestCase.run(TestCase.java:129) >> at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247) >> at junit.framework.TestSuite.runTest(TestSuite.java:252) >> at junit.framework.TestSuite.run(TestSuite.java:247) >> at >> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86) >> at >> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206) >> >> I found out that gwt-dev is depending on htmlunit 2.19 but due some >> dependency management I was using 2.29 instead. >> >> So I overrode this again in my pom.xml: >> >> >> net.sourceforge.htmlunit >> htmlunit >> 2.19 >> test >> >> >> Now I am getting this error: >> >> java.lang.NoClassDefFoundError: >> com/gargoylesoftware/htmlunit/BrowserVersion >> at >> com.google.gwt.junit.RunStyleHtmlUnit.(RunStyleHtmlUnit.java:202) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:264) >> at >> com.google.gwt.junit.JUnitShell.createRunStyle(JUnitShell.java:1181) >> at com.google.gwt.junit.JUnitShell.doStartup(JUnitShell.java:942) >> at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:913) >> at >> com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:698) >> at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672) >> at >> com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421) >> at junit.framework.TestCase.runBare(TestCase.java:141) >> at junit.framework.TestResult$1.protect(TestResult.java:122) >> at junit.framework.TestResult.runProtected(TestResult.java:142) >> at junit.framework.TestResult.run(TestResult.java:125) >> at junit.framework.TestCase.run(TestCase.java:129) >> at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247) >> at junit.framework.TestSuite.runTest(TestSuite.java:252) >> at junit.framework.TestSuite.run(TestSuite.java:247) &g
[gwt-contrib] Re: Unable to get GwtTestCase back up running
Am Mittwoch, 29. August 2018 23:40:42 UTC+2 schrieb Colin Alworth: > > With that update, you might need to look more at your test or project > setup - can you share the full log from a mvn test (or whatever you do to > run the gwt test cases)? > > So if I got this correct you are offering help to look at the next problem... I already solved tons of problems with missing source dependencies and a fix in gwt.xml Currently I am stuck here: Running net.sf.mmm.util.gwt.UtilCoreGwtTest Compiling module net.sf.mmm.util.gwt.UtilCoreGwtTest.JUnit Computing all possible rebind results for 'com.google.gwt.logging.client.LogConfiguration' Rebinding com.google.gwt.logging.client.LogConfiguration Checking rule [WARN] Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'. Are validation-api-.jar and validation-api--sources.jar on the classpath? [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule Computing all possible rebind results for 'net.sf.mmm.util.pojo.descriptor.api.PojoDescriptorBuilder' Rebinding net.sf.mmm.util.pojo.descriptor.api.PojoDescriptorBuilder Invoking generator net.sf.mmm.util.pojo.descriptor.impl.rebind.PojoDescriptorBuilderGenerator [WARN] Found only 2 supported type(s) 00:04:23.804 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'set-mapped-accessor of property 'GwtTestPojo.value' with type java.lang.String' to 'Descriptor for property values' 00:04:23.808 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'get-mapped-accessor of property 'GwtTestPojo.value' with type java.lang.String' to 'Descriptor for property values' 00:04:23.810 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'get-indexed-accessor of property 'GwtTestPojo.item' with type java.lang.String' to 'Descriptor for property items' 00:04:23.810 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'set-mapped-accessor of property 'GwtTestPojo.item' with type java.lang.String' to 'Descriptor for property items' 00:04:23.810 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'add-accessor of property 'GwtTestPojo.item' with type java.lang.String' to 'Descriptor for property items' 00:04:23.810 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'set-indexed-accessor of property 'GwtTestPojo.item' with type java.lang.String' to 'Descriptor for property items' 00:04:23.811 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'get-mapped-accessor of property 'GwtTestPojo.item' with type java.lang.String' to 'Descriptor for property items' 00:04:23.811 [main] DEBUG n.s.m.u.p.d.i.DefaultPojoDescriptorEnhancer - copying accessor 'get-size-accessor of property 'GwtTestPojo.item' with type int' to 'Descriptor for property items' [ERROR] Errors in 'net/sf/mmm/util/lang/api/CompareOperator.java' [ERROR] Line 236: The method evalComparable(Comparator, Comparable, Comparable) from the type ComparatorHelper refers to the missing type Comparator Tracing compile failure path for type 'net.sf.mmm.util.lang.api.CompareOperator' [ERROR] Errors in 'net/sf/mmm/util/lang/api/CompareOperator.java' [ERROR] Line 236: The method evalComparable(Comparator, Comparable, Comparable) from the type ComparatorHelper refers to the missing type Comparator [ERROR] Hint: Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the directive in your module to make it accessible [ERROR] An internal compiler exception occurred com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118) at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49) at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88) at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331) at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:94) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361) at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139) at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135) at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83) at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.jav
[gwt-contrib] Re: Unable to get GwtTestCase back up running
All solved. No GWT issue. Thread/Topic is done. Thanks for your help. Am Donnerstag, 30. August 2018 00:12:17 UTC+2 schrieb Jörg Hohwiller: > > Am Mittwoch, 29. August 2018 23:40:42 UTC+2 schrieb Colin Alworth: >> >> With that update, you might need to look more at your test or project >> setup - can you share the full log from a mvn test (or whatever you do to >> run the gwt test cases)? >> >> So if I got this correct you are offering help to look at the next > problem... > I already solved tons of problems with missing source dependencies and a > fix in gwt.xml > ... > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/04215985-ee6d-4942-b949-45dde2b88bc5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.