Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31045

In IntelliJ: flink-clients cannot find symbol symbol: class TestUserClassLoaderJobLib

    XMLWordPrintableJSON

Details

    Description

      When trying to build/run some tests in the IDE, IntelliJ is reporting the following compilation failure:

      /XXX/flink/flink-clients/src/test/java/org/apache/flink/client/testjar/TestUserClassLoaderJob.java:33:38
      java: cannot find symbol
        symbol:   class TestUserClassLoaderJobLib
        location: class org.apache.flink.client.testjar.TestUserClassLoaderJob
      

      A workaround seems to be to:

      1. right click on flink-clients
      2. Rebuild module (flink-clients)

      The issue is probably related to the comment from the flink-clients/pom.xml file:

      			<!--Remove the external jar test code from the test-classes directory since it mustn't be in the
      			classpath when running the tests to actually test whether the user code class loader
      			is properly used.-->
      

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              pnowojski Piotr Nowojski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: