File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
server/src/main/scala/io/delta/sharing/server Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ lazy val server = (project in file("server")) enablePlugins(JavaAppPackaging) se
119119 ExclusionRule (" com.fasterxml.jackson.core" ),
120120 ExclusionRule (" com.fasterxml.jackson.module" )
121121 ),
122- " com.linecorp.armeria" %% " armeria-scalapb" % " 1.6.0 " excludeAll(
122+ " com.linecorp.armeria" %% " armeria-scalapb" % " 1.9.2 " excludeAll(
123123 ExclusionRule (" com.fasterxml.jackson.core" ),
124124 ExclusionRule (" com.fasterxml.jackson.module" ),
125125 ExclusionRule (" org.json4s" )
Original file line number Diff line number Diff line change 1717package io .delta .sharing .server
1818
1919import java .io .{ByteArrayOutputStream , File , FileNotFoundException }
20+ import java .lang .reflect .{Field , Modifier }
2021import java .nio .charset .StandardCharsets .UTF_8
2122import java .nio .file .AccessDeniedException
2223import java .security .MessageDigest
@@ -678,6 +679,15 @@ object DeltaSharingService {
678679 val defaultJsonPrinterField =
679680 Class .forName(" com.linecorp.armeria.server.scalapb.ScalaPbConverterUtil$" )
680681 .getDeclaredField(" defaultJsonPrinter" )
682+
683+ // Remove the final modifier
684+ val modifiersField = classOf [Field ].getDeclaredField(" modifiers" )
685+ modifiersField.setAccessible(true )
686+ modifiersField.setInt(
687+ defaultJsonPrinterField,
688+ defaultJsonPrinterField.getModifiers & ~ Modifier .FINAL
689+ )
690+
681691 defaultJsonPrinterField.setAccessible(true )
682692 defaultJsonPrinterField.set(module, new Printer ())
683693 }
You can’t perform that action at this time.
0 commit comments