Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fun.HI() ClassCastException #1013

Open
icreator opened this issue Dec 20, 2022 · 1 comment
Open

Fun.HI() ClassCastException #1013

icreator opened this issue Dec 20, 2022 · 1 comment

Comments

@icreator
Copy link

icreator commented Dec 20, 2022

java.lang.ClassCastException: class org.mapdb.Fun$3 cannot be cast to class java.math.BigDecimal (org.mapdb.Fun$3 is in unnamed module of loader 'app'; java.math.BigDecimal is in module java.base of loader 'bootstrap')

on Fun.HI()

protected NavigableMap<Tuple3<Long, BigDecimal, Long>, byte[]> assetKeyMap;

            this.assetKeyMap = database.createTreeMap("balances_key_2_asset_bal_address")
                    .comparator(new Fun.Tuple3Comparator<>(Fun.COMPARATOR, Fun.COMPARATOR, Fun.COMPARATOR))
                    .makeOrGet();


        Iterator<byte[]> iter = this.assetKeyMap.subMap(
                Fun.t3(assetKey, fromOwnAmount, Long.MIN_VALUE),
                Fun.t3(assetKey, Fun.HI(), Long.MAX_VALUE)).values().iterator();

I use both version in two project

implementation group: 'org.mapdb', name: 'mapdb', version: '1.0.7'
//implementation group: 'org.mapdb', name: 'mapdb', version: '1.0.9'

in one project all work in another - error ((

@icreator
Copy link
Author

I make
protected NavigableMap <Tuple3<Long, Object, Long>, byte[]> assetKeyMap;

its work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant