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:
Simon Ogorodnik
2016-10-14 15:21:20 +03:00
parent 0b57d8eb49
commit 0cebcc9f3c
9 changed files with 75 additions and 25 deletions
@@ -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) {}
}
@@ -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);
}
@@ -0,0 +1,4 @@
package test;
public interface Face {
void subject(String p);
}