This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257579 - Cannot callback to method with generic signature
Summary: Cannot callback to method with generic signature
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 10:47 UTC by Jaroslav Tulach
Modified: 2016-01-15 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-01-15 10:47:00 UTC
@JavaScriptBody(args = { "call", "value" }, javacall = true, body =
        "call.@Call::call(Ljava/lang/Object;)(value);"
    )
    public static native int callback(Call call, int value);
    
    public interface Call<P,R> {
        public R call(P p);
    }
Comment 1 Jaroslav Tulach 2016-01-15 12:09:54 UTC
http://hg.netbeans.org/html4j/rev/b189d001b9bd

The fix will be part of 1.3 release of HTML/Java API.