-
Bug
-
Resolution: Fixed
-
P2
-
11
-
b20
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8206724 | 12 | Jan Lahoda | P2 | Resolved | Fixed | team |
JDK-8206499 | 11.0.1 | Jan Lahoda | P2 | Resolved | Fixed | b01 |
The test attempts to copy some files and encounters:
Exception running test testLoading: java.nio.file.AccessDeniedException: testLoading\\out\\Test$I$II.class -> testLoading\\test\\Test$I$II.class
java.nio.file.AccessDeniedException: testLoading\\out\\Test$I$II.class -> testLoading\\test\\Test$I$II.class
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:202)
at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:279)
at java.base/java.nio.file.Files.copy(Files.java:1287)
at NoAbortForBadClassFile.testLoading(NoAbortForBadClassFile.java:148)
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 NoAbortForBadClassFile.main(NoAbortForBadClassFile.java:77)
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)
which seems to be the typical Windows problem of deleting a file then trying to0 recreate it, but finding that Windows has not truly deleted it yet (usually due to anti-virus software) and so it fails.
Exception running test testLoading: java.nio.file.AccessDeniedException: testLoading\\out\\Test$I$II.class -> testLoading\\test\\Test$I$II.class
java.nio.file.AccessDeniedException: testLoading\\out\\Test$I$II.class -> testLoading\\test\\Test$I$II.class
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:202)
at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:279)
at java.base/java.nio.file.Files.copy(Files.java:1287)
at NoAbortForBadClassFile.testLoading(NoAbortForBadClassFile.java:148)
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 NoAbortForBadClassFile.main(NoAbortForBadClassFile.java:77)
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)
which seems to be the typical Windows problem of deleting a file then trying to0 recreate it, but finding that Windows has not truly deleted it yet (usually due to anti-virus software) and so it fails.
- backported by
-
JDK-8206499 [Testbug] tools/javac/processing/model/completionfailure/NoAbortForBadClassFile.java - AccessDeniedException
-
- Resolved
-
-
JDK-8206724 [Testbug] tools/javac/processing/model/completionfailure/NoAbortForBadClassFile.java - AccessDeniedException
-
- Resolved
-