Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
This noncompliant code example attempts to delete a specified file but gives no indication of its success. The Java Platform, Standard Edition 6 API Specification \[[API 2006|AA. Bibliography#APIReferences#API 06]\] requires {{File.delete()}} to throw a {{SecurityException}} only when the program lacks authorization to delete the file. No other exceptions are thrown, so the deletion can silently fail.

...

Wiki Markup
The Java SE 7 Documentation \[[J2SE 2011|AA. Bibliography#J2SEReferences#J2SE 11]\] defines {{Files.delete()}} to throw the following exceptions:

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="88df7450255cef54-7281e810-454e4e6c-a10e9b7e-4737c7d2098a86e05714ef72"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API References#API 06]]

File.delete()

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8153a6479aa7d714-fbacb17c-48f24140-95ad89d7-1bcf956b36452c5e53e7dd41"><ac:plain-text-body><![CDATA[

[[J2SE 2011

AA. Bibliography#J2SE References#J2SE 11]]

Files.delete()

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9457552a6859f60a-5bfb9d52-44c1439e-a6d5ada3-60070d6322cd82f9c08b16d8"><ac:plain-text-body><![CDATA[

[[Seacord 2005

AA. Bibliography#Seacord References#Seacord 05]]

Chapter 7, File I/O

]]></ac:plain-text-body></ac:structured-macro>

...