From: SourceForge.net <no...@so...> - 2011-02-11 20:09:12
|
Bugs item #3178576, was opened at 2011-02-11 15:09 Message generated for change (Tracker Item Submitted) made by sp2verdandecom You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3178576&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: Steven Przybylski (sp2verdandecom) Assigned to: Nobody/Anonymous (nobody) Summary: Order of classes in an un-named package matters Initial Comment: The following compiles and runs: public class Program { public static void main(String[] args) { System.out.println("It runs" ); } } class Foo { public double foo1() { return (1.0);} } The following fails with a static error: class Foo { public double foo1() { return (1.0);} } public class Program { public static void main(String[] args) { System.out.println("It runs" ); } } I can't find where in the Java language specification the order of classes in a unnamed package is allowed to make a difference. Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=3178576&group_id=44253 |