Make Java compilation work with inner classes. Closes #1157.
parent
e128d26b35
commit
5787a4b4fb
3 changed files with 24 additions and 2 deletions
@ -0,0 +1,15 @@ |
||||
package com.mesonbuild; |
||||
|
||||
class Simple { |
||||
class Inner { |
||||
public String getString() { |
||||
return "Inner class is working.\n"; |
||||
} |
||||
} |
||||
|
||||
public static void main(String [] args) { |
||||
Simple s = new Simple(); |
||||
Simple.Inner ic = s.new Inner(); |
||||
System.out.println(ic.getString()); |
||||
} |
||||
} |
@ -0,0 +1,5 @@ |
||||
project('simplejava', 'java') |
||||
|
||||
javaprog = jar('myprog', 'com/mesonbuild/Simple.java', |
||||
main_class : 'com.mesonbuild.Simple') |
||||
test('mytest', javaprog) |
Loading…
Reference in new issue