Skip to content

Commit

Permalink
Revert "Removing JavaIOSubstitutions quarkusio#15039"
Browse files Browse the repository at this point in the history
This reverts commit 66a6e9a.

(cherry picked from commit 96d3a45)
  • Loading branch information
gsmet committed Feb 24, 2021
1 parent 33560cd commit d561731
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.quarkus.runtime.graal;

import java.io.ObjectStreamClass;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(java.io.ObjectStreamClass.class)
@SuppressWarnings({ "unused" })
final class Target_java_io_ObjectStreamClass {

@Substitute
private static ObjectStreamClass lookup(Class<?> cl, boolean all) {
throw new UnsupportedOperationException("Serialization of class definitions not supported");
}

private Target_java_io_ObjectStreamClass(final Class<?> cl) {
throw new UnsupportedOperationException("Serialization of class definitions not supported");
}

private Target_java_io_ObjectStreamClass() {
throw new UnsupportedOperationException("Not supported");
}

}

0 comments on commit d561731

Please sign in to comment.