Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: [deprecation] newInstance() in Class has been deprecated #61

Closed
gayanW opened this issue May 28, 2018 · 0 comments
Closed

warning: [deprecation] newInstance() in Class has been deprecated #61

gayanW opened this issue May 28, 2018 · 0 comments

Comments

@gayanW
Copy link
Collaborator

gayanW commented May 28, 2018

Several compiler warnings saying 'newInstance() in Class has been deprecated' appeared in build logs when compiled with JDK 9 and later,

[javac] /home/travis/build/javapathfinder/jpf-core/src/main/gov/nasa/jpf/vm/ClassInfo.java:402: warning: [deprecation] newInstance() in Class has been deprecated
[javac]             Object attr = attrCls.newInstance(); // needs to have a default ctor
[javac]                                  ^
[javac]   where T is a type-variable:
[javac]     T extends Object declared in class Class

[javac] /home/travis/build/javapathfinder/jpf-core/src/main/gov/nasa/jpf/listener/PathOutputMonitor.java:242: warning: [deprecation] newInstance() in Class has been deprecated
[javac]       return psClass.newInstance();
[javac]                     ^
[javac]   where T is a type-variable:
[javac]     T extends Object declared in class Class

Travis log:
https://travis-ci.org/javapathfinder/jpf-core/builds/384672396#L2431-L2444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants