Menu

jSearchmonkey (JAVA) Merge Request #1: Fixed Long to Int cast error when compiling/running against JDK11+ (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Wes Hanney wants to merge 1 commit from /u/novamxd/searchmonkey/ to master, 2022-03-22

If you try to run it under JDK 11 (or greater) it fails to cast the supplied Integer value to a Long out of the box for the MaxHits and MaxRecurse.

Testing:
* Loaded with 3.2.1, reset defaults, compiled under jdk11, set max hits and recurse, performed search, no error
* Loaded with 3.2.1, reset defaults, compiled under jdk8, set max hits and recurse, performed search, no error

Commit Date  
[9e5e3f] (HEADmaster) by Wes Hanney Wes Hanney

Fixed Long to Int cast error when compiling/running against JDK11+

2022-03-21 06:12:00 Tree

Discussion

  • Wes Hanney

    Wes Hanney - 2022-03-21

    Also if you try to just use the Java Long notation the SpinnerNumberModel will default to double instead of using the Comparable<> constructor, so I had to force cast to Longs.

     
  • cottrela

    cottrela - 2022-03-22

    Hi Wes,

    Thanks for this, I'll get this merged right away.

    Best,
    Adam

     
  • cottrela

    cottrela - 2022-03-22
    • Status: open --> merged
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.