Skip to content

Commit 8461569

Browse files
committed
Temporarily disable compiling with --release
1 parent 911a418 commit 8461569

File tree

2 files changed

+5
-2
lines changed
  • src
    • main/java/org/fedoraproject/javapackages/validator
    • test/java/org/fedoraproject/javapackages/validator

2 files changed

+5
-2
lines changed

src/main/java/org/fedoraproject/javapackages/validator/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ private void compileFiles() throws IOException {
242242

243243
compilerOptions.add("-proc:none");
244244

245-
compilerOptions.add("--release");
246-
compilerOptions.add(props.getProperty("compiler.release", "25"));
245+
// compilerOptions.add("--release");
246+
// compilerOptions.add(props.getProperty("compiler.release", "25"));
247247

248248
if (!parameters.classPaths.isEmpty()) {
249249
compilerOptions.add("-cp");
@@ -376,6 +376,7 @@ private int parseArguments(String[] args) throws Exception {
376376

377377
logger = new Logger();
378378

379+
logger.debug("java.vm.version: {0}", Decorated.plain(System.getProperty("java.vm.version", "?")));
379380
logger.debug("Source path: {0}", Decorated.plain(parameters.sourcePath));
380381
logger.debug("Output directory: {0}", Decorated.plain(parameters.outputDir));
381382
logger.debug("Class path: {0}", Decorated.plain(parameters.classPaths));

src/test/java/org/fedoraproject/javapackages/validator/MainTmtTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.fedoraproject.javapackages.validator.spi.Decorated;
1717
import org.junit.jupiter.api.BeforeEach;
1818
import org.junit.jupiter.api.Test;
19+
import org.junit.jupiter.api.Disabled;
1920
import org.junit.jupiter.api.io.TempDir;
2021

2122
class MainTmtTest {
@@ -186,6 +187,7 @@ void testCompilationFailure() throws Exception {
186187
}
187188

188189
@Test
190+
@Disabled
189191
void testCompilerProperties() throws Exception {
190192
writeResource(tmtTree, "Foo.java", "package dummy; class Foo {} enum BAR {}");
191193
writeResource(tmtTree, "javapackages-validator.properties", "compiler.release=4242");

0 commit comments

Comments
 (0)