TempFileHelper java.lang.IllegalArgumentException: Invalid prefix or suffix
Michael Hall
mik3hall at gmail.com
Tue Aug 31 18:42:46 UTC 2021
> On Aug 31, 2021, at 12:45 PM, Michael Hall <mik3hall at gmail.com> wrote:
>
> java -Djava.security.policy=HalfPipe/halfpipe_jpkg/outputdir/HalfPipe.app/Contents/app/all.policy SecTemp
> WARNING: A terminally deprecated method in java.lang.System has been called
> WARNING: System::setSecurityManager has been called by SecTemp (file:/Users/mjh/)
> WARNING: Please consider reporting this to the maintainers of SecTemp
> WARNING: System::setSecurityManager will be removed in a future release
>
> No exception. So not a valid test case I guess. Different class loaders?
>
This makes it valid. Probably mine have to look a little more…
java -Djava.security.policy=HalfPipe/halfpipe_jpkg/outputdir/HalfPipe.app/Contents/app/all.policy -Djava.nio.file.spi.DefaultFileSystemProvider=us.hall.trz.osx.MacFileSystemProvider -cp .:HalfPipe/halfpipe_jpkg/outputdir/HalfPipe.app/Contents/app/macnio2.jar SecTemp
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by SecTemp (file:/Users/mjh/)
WARNING: Please consider reporting this to the maintainers of SecTemp
WARNING: System::setSecurityManager will be removed in a future release
Exception in thread "main" java.lang.IllegalArgumentException: Invalid prefix or suffix
at java.base/java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:60)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:125)
at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:159)
at java.base/java.nio.file.Files.createTempFile(Files.java:923)
at SecTemp.main(SecTemp.java:6)
More information about the nio-dev
mailing list