Java 9 deprecation warning fixes for test-suite and examples
This commit is contained in:
parent
6d8c1c47f3
commit
e6035d625a
6 changed files with 20 additions and 12 deletions
|
|
@ -76,7 +76,7 @@ public class runme {
|
|||
System.out.println( " Trying to set 'status'" );
|
||||
try {
|
||||
Method m = example.class.getDeclaredMethod("setStatus", new Class[] {Integer.class});
|
||||
m.invoke(example.class, new Object[] {new Integer(0)} );
|
||||
m.invoke(example.class, new Object[] {Integer.valueOf(0)} );
|
||||
System.out.println( "Hey, what's going on?!?! This shouldn't work" );
|
||||
}
|
||||
catch (NoSuchMethodException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue