JAVA obsolete methods [message #1237703] |
Thu, 30 January 2014 06:23 |
Eclipse User |
|
|
|
I write a code with example from plugin to manage JAVA class:
private static final String PATH = "D:\\Workspace\\";
public static void main(String[] args) {
String ALL_PATH = PATH + "test\\src";
Vector<Method> methods = ca.getAst(ALL_PATH, "");
MyTreatment(ALL_PATH, methods.elementAt(0));
....
No errors raized bu IDE but when I run the application I have the pop-up in the file joined to this subject and I have errors:
java.io.FileNotFoundException: D:\Workspace\test\src (Accès refusé)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at java.io.FileWriter.<init>(FileWriter.java:63)
at br.usp.ime.lab.analyzer.ConditionAnalyzerImpl.saveXML(ConditionAnalyzerImpl.java:559)
at br.usp.ime.lab.analyzer.ConditionAnalyzerImpl.getAllDecisions(ConditionAnalyzerImpl.java:173)
at Prototipo.main(Prototipo.java:26)
java.io.FileNotFoundException: D:\Workspace\test\src (Accès refusé)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at java.io.FileWriter.<init>(FileWriter.java:63)
at br.usp.ime.lab.analyzer.ConditionAnalyzerImpl.saveXML(ConditionAnalyzerImpl.java:559)
at br.usp.ime.lab.analyzer.ConditionAnalyzerImpl.getAllConditions(ConditionAnalyzerImpl.java:203)
at Prototipo.main(Prototipo.java:31)
I thought the method getAst() goal was to manage access to JAVA files to create a structure with result (managing also the file directory reading...)
So If you can help me to find source of problem and the way to know obsolete functions given by my IDE (because i would replace them if I could know them)
...
Regards
|
|
|
Powered by
FUDForum. Page generated in 0.02443 seconds