Skip to content

Commit

Permalink
Add "# throws ..." to generated methods that throw exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Jul 18, 2010
1 parent 0651e7d commit 90eb631
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 131 deletions.
2 changes: 0 additions & 2 deletions TODO
Expand Up @@ -22,8 +22,6 @@ type mappings etc. and document the issues/tradeoffs.
handle enums like "public final class java.sql.RowIdLifetime extends java.lang.Enum{"
by generating perl6 enums

Add thrown exceptions as comments.

Determine class hierarchy of exceptions and replicate in perl6.

* General polishing:
Expand Down
1 change: 1 addition & 0 deletions lib/Java/Javap/Generator/Perl6.pm
Expand Up @@ -325,6 +325,7 @@ method [% elem.name -%]
[% INCLUDE method_all_args elem = elem %]
[% INCLUDE method_returns ret = elem.type %]
) { ... }
[%- IF elem.throws.size %] # throws [% elem.throws.join(", ") %][% END +%]

[% END %]
[% BLOCK constant_whole %]
Expand Down

0 comments on commit 90eb631

Please sign in to comment.