Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Colin Alworth
    @niloc132
    i mean that is a failure
    is that a string assert or double?
    usually double asserts should take a lambda - it is an error in recent junit if you dont give one
    Dmitrii Tikhomirov
    @treblereel
    String
        formatter = NumberFormat.getCurrencyFormat("ITL");
        str = formatter.format(1234.556);
        assertEquals("ITL1,235", str);
    formatter works wrong
    Colin Alworth
    @niloc132
    indeed - didnt even try to truncate decimals at all :p
    Dmitrii Tikhomirov
    @treblereel
    it's a standart gwt i18n test :)
    stockiNail
    @stockiNail
    Hi all, I'm reporting here a issue that I have using GWT 2.9, Java 11 and a library compiled and jared with Java 11
    Tracing compile failure path for type 'org.pepstock.charba.showcase.client.Charba_Showcase' [ERROR] Errors in 'file:/.../Charba-Showcase/src/org/pepstock/charba/showcase/client/Charba_Showcase.java' [ERROR] org.pepstock.charba.client.geo.TopoJson cannot be resolved to a type [ERROR] Errors in 'org/pepstock/charba/client/geo/TopoJson.java' [ERROR] org.pepstock.charba.client.commons.NativeObjectContainer cannot be resolved to a type [ERROR] Errors in 'org/pepstock/charba/client/geo/Feature.java' [ERROR] org.pepstock.charba.client.commons.NativeObjectContainer cannot be resolved to a type [ERROR] Errors in 'org/pepstock/charba/client/commons/NativeObjectContainer.java' [ERROR] org.pepstock.charba.client.Chart cannot be resolved to a type [ERROR] Errors in 'org/pepstock/charba/client/commons/NativeObjectContainerFactory.java' [ERROR] org.pepstock.charba.client.commons.NativeObjectContainer cannot be resolved to a type [ERROR] Errors in 'org/pepstock/charba/client/commons/ArrayObjectContainerList.java' [ERROR] org.pepstock.charba.client.commons.NativeObjectContainer cannot be resolved to a type [ERROR] Errors in ......
    It sounds that GWT compiler is not able to read the jar of the lib created by java 11. With java 8 works.
    Colin Alworth
    @niloc132
    gwt doesnt read .class files
    (broadly speaking)
    so that is unlikely
    can you turn on -strict and share the full log?
    stockiNail
    @stockiNail
    yes, I can
    Colin Alworth
    @niloc132
    gwt itself parses the bytecode via jdt, not using your java install
    "cannot be resolved to a type" does mean that the class is missing IIRC, at least this does suggest a classpath issue ... but it could also mean "something else was wrong upstream"
    I don't think it depends on classpath because with lib built by java 8 works
    Colin Alworth
    @niloc132
    were there any other changes other than changing java version to build the library?
    stockiNail
    @stockiNail
    no
    because it's my lib
    I changed java from 8 to 11
    nothing else
    the only thing that I have changed is the deprecation annotation
    Colin Alworth
    @niloc132
         [java]          [ERROR] Errors in 'org/pepstock/charba/client/commons/ImmutableDate.java'
         [java]             [ERROR] Line 115: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 115: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 67: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 55: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 103: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 67: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 91: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 127: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 127: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 79: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 55: The attribute forRemoval is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 91: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 79: The attribute since is undefined for the annotation type Deprecated
         [java]             [ERROR] Line 103: The attribute forRemoval is undefined for the annotation type Deprecated
    thats your root issue
    it looks like you are using those annotation fields in your library?
    stockiNail
    @stockiNail
    I was thinking the same when I read it...
    Colin Alworth
    @niloc132
    which breaks in java 8 when you try to use it
    ooooh
    or gwt doesnt have the latest "Deprecated" type... i dont think we have it at all
    stockiNail
    @stockiNail
    yes, it seems GWT can not support new fields of deprecated annotation
    uhm...
    Colin Alworth
    @niloc132
    that's a bug report we can take
    stockiNail
    @stockiNail
    I think GWt doesn't have it
    let me try falling back to deprecated in JDK 8 style
    Colin Alworth
    @niloc132
    right, so we get that from the jvm
    stockiNail
    @stockiNail
    and I put here the feedback
    it works
    stockiNail
    @stockiNail
    nevertheless I checked GWT-JRE page and Deprecated sound supported even if without any other info about additional fields (added in java 11)
    this deceived me
    Thanks @niloc132
    Now I'll fight with Sonar... because it wants those fields.... :(
    stockiNail
    @stockiNail
    @niloc132 as far as you know, is this an issue only for GWT, isn't it? in J2CL, it shouldn't
    Colin Alworth
    @niloc132
    should affect j2cl too, for the same reason
    stockiNail
    @stockiNail
    put in my todo list.. now I'm curious to test it
    Colin Alworth
    @niloc132
    j2cl shares gwt's emul, mostly
    Eli Karasik
    @EliKarasik
    Hey,
    Did anyone manage to debug a GWT app in Safari? I can see the source maps, but breakpoints just don't work.
    Unfortunately Safari is evil, and has some specific bugs I need to debug.
    There was a message here a couple of years ago that this didn't work. Did anyone make any progress?
    Colin Alworth
    @niloc132
    @EliKarasik simple and quick would be to compile with style=PRETTY, and disable sourcemaps, the js should be roughly readable and analogous to your java (var names, field names relatively unmangled)