Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-794

Spreadsheet cannot be created if ZK is Freshly version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 6.1.0
    • 6.0.0, 6.1.0
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      Run Keikai with a FL ZK version
      for example:
      <zk.version>10.1.0-jakarta.FL.202410251520-Eval</zk.version>
      <keikai-version>6.0.0-jakarta</keikai-version>

      Open a zul page containing a spreadsheet (no need for any document or specific values)

      Current Result

      java.lang.NumberFormatException: For input string: "10.10FL202410251520"
          at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
          at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
          at java.base/java.lang.Double.parseDouble(Double.java:651)
          at io.keikai.ui.impl.XUtils.getDoubleVersion(XUtils.java:61)
          at io.keikai.ui.impl.DefaultUserActionManagerCtrl.initDefaultAuxHandlers(DefaultUserActionManagerCtrl.java:314)
          at io.keikai.ui.impl.DefaultUserActionManagerCtrl.<init>(DefaultUserActionManagerCtrl.java:145)
          at io.keikaiex.ui.impl.UserActionManagerCtrlImpl.<init>(UserActionManagerCtrlImpl.java:84)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
          at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
          at org.zkoss.lang.Classes.newInstance(Classes.java:77)
          at io.keikai.ui.Spreadsheet.newInstance(Spreadsheet.java:4550)
          at io.keikai.ui.Spreadsheet.getUserActionManagerCtrl(Spreadsheet.java:593)
          at io.keikai.ui.Spreadsheet.initComponentActionHandler(Spreadsheet.java:550)
          at io.keikai.ui.Spreadsheet.<init>(Spreadsheet.java:490)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
      

      Expected Result

      No error

      Debug Information

      io.keikai.ui.impl.XUtils.getDoubleVersion()

      _doubleVersion = Double.parseDouble(pre + "." + post);
      post is 10FL202410251520, so parsing fails

      Workaround

      don't use FL

            jumperchen jumperchen
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: