eclipse-jdt / eclipse-jdt/eclipse.jdt.core

CompilerToolJava9Tests.testGH958_2modules() logs many exceptions

Open
#3,591 0 comments 0 reactions 0 assignees View on GitHub
regression test
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

https://download.eclipse.org/eclipse/downloads/drops4/I20250121-1800/testresults/consolelogs/ep435I-unit-macosx-aarch64-java21_macosx.cocoa.aarch64_21_consolelog.txt

```
java-test:
[echo] Running org.eclipse.jdt.compiler.tool.tests.AllCompilerToolTests. Result file: /Users/genie.releng/workspace/AutomatedTests/ep435I-unit-macosx-aarch64-java21/workarea/I20250121-1800/eclipse-testing/results/ep435I-unit-macosx-aarch64-java21_macosx.cocoa.aarch64_21/org.eclipse.jdt.compiler.tool.tests.AllCompilerToolTests.xml
[echo] timout property: 7200000
[echo] frameworkvmargs: -XstartOnFirstThread -Xms256m -Xmx2048m -Djava.io.tmpdir=/Users/genie.releng/workspace/AutomatedTests/ep435I-unit-macosx-aarch64-java21/tmp
[echo] vmargs:
[echo] extraVMargs:
[echo] frameworkperfargs:
[echo] crash loglocationarg (if any): ${loglocationarg}
[echo] crash loglocation (if not default):
[java] Jan 21, 2025 7:18:41 PM org.apache.aries.spifly.BaseActivator log
[java] INFO: Registered provider org.slf4j.simple.SimpleServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle slf4j.simple
[java] INFO: timeoutScreenOutputDir: /Users/genie.releng/workspace/AutomatedTests/ep435I-unit-macosx-aarch64-java21/workarea/I20250121-1800/eclipse-testing/results/ep435I-unit-macosx-aarch64-java21_macosx.cocoa.aarch64_21/timeoutScreens
[java] INFO: timeout: 7200000
[java] Failed to read module for path module-info.class and release null from resources/module_locations/GH958_automod.jar
[java] java.nio.file.NoSuchFileException: resources/module_locations/GH958_automod.jar
[java] at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
[java] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
[java] at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[java] at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
[java] at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:171)
[java] at java.base/java.nio.file.Files.readAttributes(Files.java:1853)
[java] at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1445)
[java] at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:724)
[java] at java.base/java.util.zip.ZipFile.(ZipFile.java:251)
[java] at java.base/java.util.zip.ZipFile.(ZipFile.java:180)
[java] at java.base/java.util.zip.ZipFile.(ZipFile.java:194)
[java] at org.eclipse.jdt.internal.compiler.batch.ModuleFinder.extractModuleFromArchive(ModuleFinder.java:243)
[java] at org.eclipse.jdt.internal.compiler.batch.ModuleFinder.scanForModule(ModuleFinder.java:114)
[java] at org.eclipse.jdt.internal.compiler.batch.ModuleFinder.scanForModules(ModuleFinder.java:67)
[java] at org.eclipse.jdt.internal.compiler.batch.ModuleFinder.findModules(ModuleFinder.java:43)
[java] at org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.initModules(EclipseFileManager.java:1434)
[java] at org.eclipse.jdt.internal.compiler.tool.EclipseFileManager.setLocation(EclipseFileManager.java:1027)
[java] at org.eclipse.jdt.compiler.tool.tests.CompilerToolJava9Tests.testGH958(CompilerToolJava9Tests.java:1001)
[java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[java] at junit.framework.TestCase.runTest(TestCase.java:177)
[java] at junit.framework.TestCase.runBare(TestCase.java:142)
[java] at junit.framework.TestResult$1.protect(TestResult.java:122)
[java] at junit.framework.TestResult.runProtected(TestResult.java:142)
[java] at junit.framework.TestResult.run(TestResult.java:125)
[java] at junit.framework.TestCase.run(TestCase.java:130)
[java] at junit.framework.TestSuite.runTest(TestSuite.java:241)
[java] at junit.framework.TestSuite.run(TestSuite.java:236)
[java] at junit.framework.TestSuite.runTest(TestSuite.java:241)
[java] at junit.framework.TestSuite.run(TestSuite.java:236)
[java] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)
[java] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[java] at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
[java] at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42)
[java] at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
[java] at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)
[java] at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)
[java] at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)
[java] at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
[java] at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)
[java] at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:63)
[java] at org.eclipse.test.EclipseTestRunner.runTests(EclipseTestRunner.java:212)
[java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:187)
[java] at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:53)
[java] at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:35)
[java] at org.eclipse.test.CoreTestApplication.start(CoreTestApplication.java:44)
[java] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
[java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
[java] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[java] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
[java] Failed to read manifest from resources/module_locations/GH958_automod.jar
[java] java.nio.file.NoSuchFileException: resources/module_locations/GH958_automod.jar

... and more
```
@stephan-herrmann please take a look

Contributor guide

Open the contributing guide

Research direction

Start with org.eclipse.jdt.compiler.tool.tests.CompilerToolJava9Tests.testGH958 at line 1001 and run the affected compiler-tool test. Trace the references to resources/module_locations/GH958_automod.jar and inspect the logged ModuleFinder failures; done means the test no longer emits exceptions for the missing archive and the test suite still passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.