Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8196425

tools/javac/modules/AnnotationProcessing.java failed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 11
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      master
    • OS:
      windows

      Description

      failing code: expectFilerException(() -> filer.createClassFile("m1x/Fail"))
      failing code: expectFilerException(() -> filer.createSourceFile("clash.Fail"))
      [DIRECT]:
      Note: Multiple elements named 'clash' in modules 'm2x, m1x' were found by javax.lang.model.util.Elements.getPackageElement.
      failing code: expectFilerException(() -> filer.createClassFile("clash.Fail"))
      Exception running test testGenerateInMultiModeAPI: java.nio.file.DirectoryNotEmptyException: testGenerateInMultiModeAPI\\classes\\m1x\\api1
      java.nio.file.DirectoryNotEmptyException: testGenerateInMultiModeAPI\\classes\\m1x\\api1
      at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:267)
      at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
      at java.base/java.nio.file.Files.delete(Files.java:1134)
      at toolbox.ToolBox$1.postVisitDirectory(ToolBox.java:276)
      at toolbox.ToolBox$1.postVisitDirectory(ToolBox.java:263)
      at java.base/java.nio.file.Files.walkFileTree(Files.java:2734)
      at java.base/java.nio.file.Files.walkFileTree(Files.java:2788)
      at toolbox.ToolBox.cleanDirectory(ToolBox.java:263)
      at AnnotationProcessing.runCompiler(AnnotationProcessing.java:968)
      at AnnotationProcessing.runCompiler(AnnotationProcessing.java:954)
      at AnnotationProcessing.testGenerateInMultiModeAPI(AnnotationProcessing.java:689)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at toolbox.TestRunner.runTests(TestRunner.java:89)
      at ModuleTestBase.runTests(ModuleTestBase.java:49)
      at AnnotationProcessing.main(AnnotationProcessing.java:98)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                anazarov Andrey Nazarov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: