forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Removing JavaIOSubstitutions quarkusio#15039"
This reverts commit 66a6e9a.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
core/runtime/src/main/java/io/quarkus/runtime/graal/JavaIOSubstitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
|
||
} |