You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Tomo Suzuki (Jira)" <ji...@apache.org> on 2021/09/01 01:48:00 UTC
[jira] [Commented] (BEAM-12820) Java precommit failing:
tpcds:compileJava
[ https://issues.apache.org/jira/browse/BEAM-12820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407744#comment-17407744 ]
Tomo Suzuki commented on BEAM-12820:
------------------------------------
I didn't know such checker installed in Beam. Thank you.
My memo:
{code}
suztomo-macbookpro44% cat build.gradle
plugins {
id 'java'
id 'org.checkerframework' version '0.5.24'
}
apply plugin: 'org.checkerframework'
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
def checkerframework_version = "3.10.0"
dependencies {
checkerFramework("org.checkerframework:checker:$checkerframework_version")
}
checkerFramework {
checkers = [
'org.checkerframework.checker.nullness.NullnessChecker'
]
}
{code}
{code}
suztomo-macbookpro44% cat src/main/java/Hello.java
public class Hello {
public static void main(String[] arguments) {
new Hello(null);
}
Hello(String message) {
System.out.println("message: " + message);
}
}
{code}
{code}
suztomo-macbookpro44% ./gradlew check
> Task :compileJava FAILED
/Users/suztomo/hello-checker-framework/src/main/java/Hello.java:23: error: [argument.type.incompatible] incompatible argument for parameter message of Hello.
new Hello(null);
^
found : null (NullType)
required: @Initialized @NonNull String
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
2 actionable tasks: 1 executed, 1 up-to-date
{code}
> Java precommit failing: tpcds:compileJava
> -----------------------------------------
>
> Key: BEAM-12820
> URL: https://issues.apache.org/jira/browse/BEAM-12820
> Project: Beam
> Issue Type: Bug
> Components: test-failures
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: P1
> Labels: currently-failing
> Fix For: 2.34.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Java precommit has been failing task :sdks:java:testing:tpcds:compileJava because of [https://github.com/apache/beam/pull/15361].
> > Task :sdks:java:testing:tpcds:compileJava
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Cron/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter doc of createRecord.
> org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
> ^
> found : null (NullType)
> required: @Initialized @NonNull String
> /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_Cron/src/sdks/java/testing/tpcds/src/main/java/org/apache/beam/sdk/tpcds/SqlTransformRunner.java:213: error: [argument.type.incompatible] incompatible argument for parameter namespace of createRecord.
> org.apache.avro.Schema.createRecord(schema.getName() + "_projected", null, null, false);
> ^
> found : null (NullType)
> required: @Initialized @NonNull String
--
This message was sent by Atlassian Jira
(v8.3.4#803005)