|
From: SourceForge.net <no...@so...> - 2009-03-09 12:31:51
|
Bugs item #2674992, was opened at 2009-03-09 07:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2674992&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Language Levels Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mathias Ricken (mgricken) Assigned to: Nobody/Anonymous (nobody) Summary: Should automatically generate public modifier Initial Comment: The "public" modifier is implicit for interfaces, but explicit for classes. When an interface is implemented and the "public" modifier has not been specified, it should be automatically generated by the language level converter. Example: class FingerExercises { Object doSomething() { UnaryFun f = new UnaryFun() { Object apply(Object arg) { // generate public modifier here return (Integer)arg * (Integer)arg;} }; return f.apply(5); } } interface UnaryFun { public Object apply(final Object arg); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2674992&group_id=44253 |