Static inner class access methods that should throw exceptions

Mark Wielaard mark@klomp.org
Sat Nov 1 00:51:00 GMT 2003


Hi,

Compiling the attached code gives:

InnerExcept.java: In class `InnerExcept':
InnerExcept.java: In method `access$1()':
InnerExcept.java:18: error: Exception `java.io.IOException' must be
caught, or it must be declared in the `throws' clause of `access$1'.
   }
   ^
1 error

Removing the static modifier of the createFile() method makes it compile
though. Is this a known issue or should I open a new bug report?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InnerExcept.java
Type: text/x-java
Size: 283 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20031101/87941170/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20031101/87941170/attachment.sig>


More information about the Java mailing list