Liam Miller-Cushon created BEAM-6096:
----------------------------------------

             Summary: illegal signature attribute when compiling with JDK 11
                 Key: BEAM-6096
                 URL: https://issues.apache.org/jira/browse/BEAM-6096
             Project: Beam
          Issue Type: Bug
          Components: beam-model
            Reporter: Liam Miller-Cushon
            Assignee: Kenneth Knowles


The following code is invalid, and fails to compile with the JDK 11 javac: 
https://github.com/apache/beam/blob/1cbbc4d8755130f137e7d9ef4813e8d3b917cb70/sdks/java/harness/src/main/java/org/apache/beam/fn/harness/WindowMergingFnRunner.java#L132-L144

The error is:

```
error: error while generating class <anonymous 
org.apache.beam.fn.harness.WindowMergingFnRunner$MergingViaWindowFnRunner$1>
 (illegal signature attribute for type CAP#1)
 where CAP#1 is a fresh type-variable:
 CAP#1 extends Object from capture of ?
```

The code was previously accepted by javac due to a bug, which has been fixed in 
JDK 11: https://bugs.openjdk.java.net/browse/JDK-8203436



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to