Autotype ant task and java source file having method which  returns hashmap

Hi Friends,
I am using autotype ant task to generate types.xml and supporting java classes.
The task is defined as follows .
<target name="std">
<source2wsdd javaSource="HelloWorld.java"
typesInfo="types.xml"
ddFile="ddfiles/web-services.xml"
serviceURI="/HelloWorldService"/>
</target>
In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
C:\test-ws\javaclass>ant auto
Buildfile: build.xml
auto:
[autotype] Autotyping for javaTypes TestBean
[autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
: interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
a/util/Map.class. All classes that will be serialized or deserialized must be n
on-interface, non-abstract classes that provide a public default constructor
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
sureValidClass(JavaInspector.java:1050)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:927)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:905)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
dPropertiesToScalar(JavaInspector.java:834)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:209)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
peMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
Java2SchemaImpl.java:167)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
a2Schema(JavaSchema.java:302)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
te(JavaSchema.java:184)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
xception: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: Invalid class received: interface
java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
class.  All classes that will be serialized or deserialized must be non-interfac
e, non-abstract classes that provide a public default constructor]
Can any one provide the solution for this
Thanks
Anantha

Hi Friends,
I am using autotype ant task to generate types.xml and supporting java classes.
The task is defined as follows .
<target name="std">
<source2wsdd javaSource="HelloWorld.java"
typesInfo="types.xml"
ddFile="ddfiles/web-services.xml"
serviceURI="/HelloWorldService"/>
</target>
In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
C:\test-ws\javaclass>ant auto
Buildfile: build.xml
auto:
[autotype] Autotyping for javaTypes TestBean
[autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
: interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
a/util/Map.class. All classes that will be serialized or deserialized must be n
on-interface, non-abstract classes that provide a public default constructor
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
sureValidClass(JavaInspector.java:1050)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:174)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:927)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateBeanProperty(JavaInspector.java:905)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
dPropertiesToScalar(JavaInspector.java:834)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
llDescriptor(JavaInspector.java:209)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
tDescriptor(JavaInspector.java:139)
[autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
eateDescriptorForClass(JavaInspector.java:106)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
(Compiler.java:106)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
pClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
ddMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
peMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
Java2SchemaImpl.java:167)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
a2Schema(JavaSchema.java:302)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
te(JavaSchema.java:184)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[autotype] at org.apache.tools.ant.Main.start(Main.java:196)
[autotype] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
xception: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: Invalid class received: interface
java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
class.  All classes that will be serialized or deserialized must be non-interfac
e, non-abstract classes that provide a public default constructor]
Can any one provide the solution for this
Thanks
Anantha

Similar Messages

  • Parsing java source files - identifying method signature

    Im doing a project in which i need to parse java source file and identifying java method signature to take the methods parameters name as tokens, does anyone know how to do this with regular expression? I really appreciate your help.
    regards,
    gr33nl1nk

    i'm still working on it, but still doesn't work :'(
    // Regular expression used to find the result type and the name of a method
    //String s1 = "\\s-*\\(\\(public\\|protected\\|private\\|const\\|abstract\\|synchronized\\|final\\|static\\|threadsafe\\|transient\\|native\\|volatile\\)\\s-+\\)*\\(.*\\)";
    String s1 = "\\s-*((public|protected|private|const|abstract|synchronized|final|static|threadsafe|transient|native|volatile)\\s-+)*\\(.*\\)";
    // Regular expression used to find the method arguments
    String s2 = "([ ]*\\(.*\\)[ ]*)";
    // Regular expression used to find the method exceptions.
    String s3 = "throws[ ]+\\(.*\\)[ ]*[{;]";
    // Regular expression for white spaces separator
    String sp = "[ \t\r\n]+";
    //String mspat = s1+sp+s2;
    String mspat = s1;
    compile(mspat);

  • Getting all the members (variables, methods AND method bodies) of a java source file

    For a project I want to programmatically get access to the members of java source file (member variables, methods etc) as well as to the source code of those members. My question is what is the best method for this? So far I have found the following methods:
    Use AST's provided by the Java Source API and Java Tree API, as discussed in the following posts:
    http://today.java.net/pub/a/today/2008/04/10/source-code-analysis-using-java-6-compiler-apis.html
    http://weblogs.java.net/blog/timboudreau/archive/2008/02/see_java_code_t.html
    http://netbeans.dzone.com/announcements/new-class-visualization-module
    This has the disadvantage that the classes actually have to be compilable. When I look at the Netbeans Navigator view however, it provides me with a nicely formatted UI list, regardless of the "compilable" state of the class.
    Thus I started looking at how to do this... The answer appears to be through the use of tools such as JavaCC: https://javacc.dev.java.net/
    ANTLR: http://www.antlr.org/
    which are lexers and parsers of source code. However, since the Navigator panel already does this, couldn't I use part of this code to get me the list of variables and methods in a source file? Does the Navigator API help in this regard?
    Another route seems to be through tools such as
    BeautyJ: http://beautyj.berlios.de/
    which run on top of JavaCC if I am correct, and which has the ability to provide a clean view on your java code (or an XML view). However, BeautyJ does not seem to be too actively developed, and is only j2se1.4 compatible.
    I hope someone can shed a light on the best way to go about what I want to achieve. Somebody already doing this?
    (I crossposted on the Netbeans forums too, hope this is OK...)

    I'm currently developing a LaTeX editor(MDI) and I do the same thing, but I don't know what exactly do you need.

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

  • IMPDP to import  JAVA CLASS  and JAVA SOURCE from .DMP file

    hi,
    I have a schema X, In that schema some of the *"JAVA CLASS" and "JAVA SOURCE"* objects are missing ..
    The procedures ,functions..etc objects were updated at X schema..
    I have 1 dmp file of Y schema , containing the missing "JAVA CLASS" and "JAVA SOURCE" s.. Can I import the the same to the schema X using IMPDP
    i tried using INCLUDE clause but it is not working
    eg:
    impdp john1/john1@me11g22 directory=datadump dumpfile=DEVF2WAR.DMP remap_schema=devf2war:john INCLUDE="JAVA CLASS","JAVA CLASS"but error..
    ORA-39001: invalid argument value
    ORA-39041: Filter  "INCLUDE" either identifies all object types or no object types.regards,
    jp

    Hello,
    You should type JAVA_CLASS and JAVA_SOURCE (use underscore instead of space).
    impdp john1/john1@me11g22 directory=datadump dumpfile=DEVF2WAR.DMP remap_schema=devf2war:john INCLUDE="JAVA_CLASS","JAVA_CLASS"Best Regards,
    Gokhan Atil
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • Only to import  JAVA CLASS  and JAVA SOURCE  from .DMP file using IMPDP

    hi,
    I have a schema X, In that schema some of the *"JAVA CLASS" and "JAVA SOURCE"* objects are missing ..
    The procedures ,functions..etc objects were updated at X schema..
    I have 1 dmp file of Y schema , containing the missing "JAVA CLASS" and "JAVA SOURCE" s.. Can I import the the same to the schema X using IMPDP
    i tried using INCLUDE clause but it is not working
    eg:
    impdp john1/john1@me11g22 directory=datadump dumpfile=DEVF2WAR.DMP remap_schema=devf2war:john INCLUDE="JAVA CLASS","JAVA CLASS"but error..
    ORA-39001: invalid argument value
    ORA-39041: Filter  "INCLUDE" either identifies all object types or no object types.regards,
    jp

    Double post: IMPDP to import  JAVA CLASS  and JAVA SOURCE from .DMP file
    Already replied.
    Regards
    Gokhan

  • Using wsdlc Ant task and Eclipse

    Hi all,
    I'm using the WebLogic Ant Task wsdlc to generate a default implementation of a java web service based on an existing WSDL.
    Everythign generates just fine. I have one little problem though: the classes that represent some of the complex types defined in the WSDL are generated in the compiled WSDL file (the JAR file that wsdlc creates). If I open the java source file for the web service (also created by the wsdlc task, but NOT in the compiled wsdl jar) with Eclipse, Eclipse cannot find the source code for those complex types, and therefore underlines the data types in red to indicate an error.
    My question is this: is there a way to tell Eclipse to look for additional source files inside of the compiled wsdl.jar file?
    Many thanks in advance!
    Jeff

    I got around this by unjaring the generated source jar into a "generated/src" directory and put that directory on the build path.
    Andy O

  • JavaTypes attribute of autoType Ant Task

    I have got two files Account.java and ContactInformation.java. I am trying to
    create webservices for Account.java and this java file uses a non-build in data
    type object ContactInformation.java.
    After compiling the code i try and generate the serialization class, xsd, xml
    and web-services xml using the ant task autotype. On running this i get the below
    mentioned error
    E:\bea\weblogic700\samples\server\src\examples\webservices\basic\account>E:\bea\weblogic700\server\bin\ant
    -buildfile build1.xml
    Buildfile: build1.xml
    generate-typeinfo:
    BUILD FAILED
    E:\bea\weblogic700\samples\server\src\examples\webservices\basic\account\build1.xml:6:
    The <autotype> task doesn't support the "javatypes" attribute.
    Total time: 1 second
    My entry in build1.xml is
    <project name="buildWebservice" default="generate-typeinfo">
         <target name="generate-typeinfo">
              <autotype javaTypes="com.sun.sample.ws.account.ContactInformation"
                        targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
                        packageName="com.sun.sample.ws.account"
                        destDir="." />
              </target>
    </project>
    Can someone point out how can this be corrected?
    Regards,
    Rahul.

    Thanks Michael,
    This is what i am trying to do.
    I have Account.java as java class that is to be used as a web service backend
    component for weblogic web service. All the attributes of this class are primitive
    types. There is one data type that is a NON BUILT IN DATA TYPE. Now in such a
    scenario i need some more files to create a web service. The extra files are the
    serilization class, an XML Schema reprsenting the non built in data type, data
    type mapping information in the web-services.xml. These requiremnts are defined
    in Chapter 9 of the weblogic webservices pdf document.
    One can create the file manually or automatically. The manual is lengthy and complex
    so I am following the automatic procedure. The document also suggests automatic
    procedure. For that one need to write a build.xml with the contents that I have
    already posted. When I execute the same it gives me error that the attribute javaTypes
    is not supported.
    For ur ref i am attaching the Account.java, ContactInformation.java(This is the
    non built in data type used by Account.java, the websevice build.xml and the autotype
    auto_build.xml). They are in a zip file.(2KB)
    I followed the below steps after setting the env using the file setWLSEnv.cmd.
    Compiled the java files using javac -d . *.java.
    Now run the autotype ant task using auto_build.xml to generate the serilaization
    class and XML schema. Here I get the error posted in the earlier email to this
    group.
    Thanks in advance for ur help
    Rahul
    "Michael Wooten" <[email protected]> wrote:
    >
    Hi Rahul,
    I think this is either an error in the e-docs, or the code to actually
    add the
    javaTypes attribute to the AutoTypeTask didn't make it into the release.
    It sounds like you have already created the ContactInformation.class
    (from the
    ContactInformation.java file), so are you just trying to get something
    else out
    of the <autotype> Ant task? If you can tell me what you were looking
    for, I might
    be able to tell you how to get it.
    Regards,
    Mike Wooten
    "Rahul Naithani" <[email protected]> wrote:
    I have got two files Account.java and ContactInformation.java. I amtrying
    to
    create webservices for Account.java and this java file uses a non-build
    in data
    type object ContactInformation.java.
    After compiling the code i try and generate the serialization class,
    xsd, xml
    and web-services xml using the ant task autotype. On running this iget
    the below
    mentioned error
    E:\bea\weblogic700\samples\server\src\examples\webservices\basic\account>E:\bea\weblogic700\server\bin\ant
    -buildfile build1.xml
    Buildfile: build1.xml
    generate-typeinfo:
    BUILD FAILED
    E:\bea\weblogic700\samples\server\src\examples\webservices\basic\account\build1.xml:6:
    The <autotype> task doesn't support the "javatypes" attribute.
    Total time: 1 second
    My entry in build1.xml is
    <project name="buildWebservice" default="generate-typeinfo">
         <target name="generate-typeinfo">
              <autotype javaTypes="com.sun.sample.ws.account.ContactInformation"
                        targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
                        packageName="com.sun.sample.ws.account"
                        destDir="." />
              </target>
    </project>
    Can someone point out how can this be corrected?
    Regards,
    Rahul.
    [testcode.zip]

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • More than one class in single java source file?

    Is there a way to define more than one class in single java source file?
    I get a duplicate class definition error for each extra class, but I am sure there is a way to handle this in JDeveloper.
    Anyone knows how ?

    Please post the question in jdeveloper forum at
    JDeveloper and ADF
    for quick response.
    Regards,
    Anupama
    http://otn.oracle.com/sample_code/content.html

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • Forte compile error java source files must have a .java suffix

    Hello Guru's,
    I am using Forte for Java release 2.0 build 1160, and Java SDK 1.3.1.
    When I try to compile a project in Forte I get the following error :
    "fastjavac: java source files must have a .java suffix C:\Program"
    I have looked at the source files and they do hav .java suffix!
    If this is not the correct form can someone point me in the right direction. If this is a correct forum then help is very much appreciated.
    Cheers...Harki

    Hi,
    Try to compile like this:
    javac yourfile.java
    Hope this helps you.
    Cheers.....Dinesh

  • Error running batch files from java source file???

    Dear Friends,
    hi,
    this is with response to a doubt i had earlier ,
    i want to run batch files from the java source file ,i tried using this code (here batrun is the batch file name that contains commands to run other java files)
    try
    String [] command = {"c:\\vishal\\finalmain\\batrun"};
    Runtime.getRuntime().exec(command);
    catch(Exception e)
    but i got the following error.
    java.io.IOException: CreateProcess: gnagarrun error= 2
    plz. help me, i tried all combination w/o success,
    in anticipation(if possible give the code after testing)
    Vishal.

    hello there,
    i solved the prob. by using
    cmd /c start filename ,but i need to pass parameters ie
    cmd /c start java "c:/vishal/runfile a b" where a and b are the parameters. but it is not accepting this in Runtime.getRuntime.exec(),
    any solutions ?????????
    regards,
    Vishal

  • Parser converting java source file

    I want to build a parser, which reads a java source and adds stubs at the start and end of a method, which might be for a public/protected/private method.
    This public/protected/private keyowrd , and source file will be passed as command line arguments to the parser.
    The generated output java source file should be similar to input source file with stubs.
    For example , we have a java source file( A.java) file as specified below
    class A{
         public m1(int m1_a, int m1_b){  }
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    parser public A.java;
    after parsing it should generate output source file as A.JAVA as specified below
    class A{
         public m1(int m1_a, int m1_b)
    {  System.out.println(" start of "A:m1"" +  time: +"parameters:" +" a="+a ," b="+b)
         System.out.println(" End of "A:m1"" + time: +"parameters:" +" a="+a ," b="+b)
         protected m2(int m2_x, int m2_y){ }
         private m3(int m3_p, int m3_q) {  }
    Are there any tools , example programs , tips on the above problem .
    Anticipating help at the earliest

    HI dcminter,
    I am not talking about performance tuning,
    I need to build a program ( tool) which add System.out.println() statements as specified above for specific methods ( which might be public/private/protected ) which will be passed to the parser along with the java source text file.
    This program(tool)should only convert from one java source text file (A.java) to another java source text (A.JAVA) file , by adding the extra System.out.println() statements.
    Please help in this regard about any sample or tool or tips in solving.
    Awaiting for ur reply
    --gvr123                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Translate java source file

    Dear Friends,
    Does anybody know how to translate java sources file and get all the info from it.
    Like i want to write a parser and want to extract its details and store in datastructures.
    Any similar examples present or any suggessions please inform.
    Thanks in advance.

    there is a tool called javacc which generates parsing code. You can also google for "javacc grammar repository" to find a java grammer you can pick up and start using

Maybe you are looking for