Skip to content

predicate is not usable by but exposed to JavaScript. #211

Answered by wowoName
wowoName asked this question in Q&A
Discussion options

You must be logged in to vote

thanks!
This is my code:
@jstype(isNative = true,namespace = JsPackage.GLOBAL)
public class DataTable {

@JsMethod
public native  RowResult[] Select(Predicate<RowResult> predicate);

}。
I am trying to rewrite the DataTable class in js as an overridden java class. So the above problem occurred when I was packing. (When I typed the complete java code, I found that the size of the package was too large, almost 90M, so I rewrote some java classes in js to reduce the size of the package). If the current issue does not work out well, is there any way to reduce the package size (currently my configured compilationLevel: SIMPLE_OPTIMIZATIONS).
thanks~

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wowoName
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #210 on September 01, 2023 16:20.