Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JAVA obsolete methods(Application failed due to obsolete uses)
JAVA obsolete methods [message #1237703] Thu, 30 January 2014 11:23
cyril dufrechou is currently offline cyril dufrechouFriend
Messages: 35
Registered: September 2013
Member
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
Previous Topic:Help me
Next Topic:Dynamic Source Folders
Goto Forum:
  


Current Time: Fri Apr 26 15:16:34 GMT 2024

Powered by FUDForum. Page generated in 0.03330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top