Fix for KT-12677. J2K: Invalid SAM constructor redundancy detection
Now all J2kPostProcessing's executing in fixed order, dependent on it index in J2kPostProcessingRegistrar._processings
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package test;
|
||||
public class Stage {
|
||||
public void context(Acceptor acceptor) {
|
||||
acceptor.acceptFace(new Face() {
|
||||
@Override public void subject(String p) {
|
||||
System.out.println(p);
|
||||
}
|
||||
});
|
||||
acceptor.setFace(new Face() {
|
||||
@Override public void subject(String p) {
|
||||
System.out.println(p);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
class Stage {
|
||||
fun context(acceptor: Acceptor) {
|
||||
acceptor.acceptFace { p -> println(p) }
|
||||
acceptor.face = Face { p -> println(p) }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
public class Acceptor {
|
||||
private Face face;
|
||||
public Face getFace() { return face; }
|
||||
public void setFace(Face face) { this.face = face; }
|
||||
|
||||
public void acceptFace(Face face) {}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
public class Acceptor {
|
||||
private Face face;
|
||||
public Face getFace() { return face; }
|
||||
public void setFace(Face face) { this.face = face; }
|
||||
|
||||
public void acceptFace(Face face) {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package test;
|
||||
public interface Face {
|
||||
void subject(String p);
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test;
|
||||
public interface Face {
|
||||
void subject(String p);
|
||||
}
|
||||
Reference in New Issue
Block a user