vigna / fastutil

fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
Apache License 2.0
1.74k stars 194 forks source link

find-deps.sh doesn't work #298

Open kromar777 opened 1 year ago

kromar777 commented 1 year ago

Empty output for "find" and no classes list for "minimize".

There is a space after "->" in jdeps output so changing $2 to $3 argument in awk should fix the problem: https://github.com/vigna/fastutil/blob/93619326ed12d9df53b0a6d45855f671b90067db/find-deps.sh#L123 https://github.com/vigna/fastutil/blob/93619326ed12d9df53b0a6d45855f671b90067db/find-deps.sh#L179

incaseoftrouble commented 1 year ago

Since I brewed this - jeah probably fine. The issue is that the output format of jdeps is not fixed. Maybe one can do ? instead of adding just a space?

kromar777 commented 1 year ago

I tried it on 1.8 and 17 JDK and there is a space on both... And another problem after it finally worked is not all the transitive .class included, need some jdeps tuning I think, going to deep in it later. For example, HelloWorld with only Int2IntArrayMap map = new Int2IntArrayMap(); Int2FloatMap map1 = new Int2FloatArrayMap(); is getting "class file for it.unimi.dsi.fastutil.ints.AbstractInt2FloatFunction not found".