Share

RECODER

Code

Programming Languages: Java

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-11-09 svn co https://recoder.svn.sourceforge.net/svnroot/recoder recoder

Show:

What's happening?

  • RECODER

    tgutzmann committed revision 718 to the RECODER SVN repository, changing 1 files.

    2009-11-09 08:16:20 UTC by tgutzmann

  • Followup: RE: Get *dynamic* type of field reference?

    Hej, do (1) you mean the type at runtime? Or (2) simply the type of a (Field|Method)Reference if it does not have a prefix? (1) not at all with Recoder, as it is a framework for *static* analysis and metaprogramming ;) (2) sc.getSourceInfo().getMethod(x).getContainingClassType(). Note, before Java 5 a member reference that is not prefixed would have to come from the current type...

    2009-11-09 08:07:44 UTC by tgutzmann

  • Get *dynamic* type of field reference?

    Hi all! How do I retrieve the **dynamic** type of a field reference? In comparison, to retrieve the **static** type of FieldReference 'x' I have: ReferencePrefix refPrefix = x.getReferencePrefix(); if (refPrefix != null) { Type type = sc.getSourceInfo().getType(refPrefix); } The same question applies also for a **Method**Reference. Thanks for any help or hints!

    2009-11-09 00:19:39 UTC by widheg

  • Followup: RE: v0.94a: Compilation error

    Hej, it's a bug in javac. See [the FAQ][1] and [the original bug report][2] for information. Workaround: Use the eclipse-compiler. The JDK 7 compiler is said to have the bug fixed as well, but I haven't tried it. Best regards, Tobias [1]: http://sourceforge.net/apps/mediawiki/recoder/index.php?title=FAQ#Problems_using_javac [2]...

    2009-11-08 18:53:29 UTC by tgutzmann

  • v0.94a: Compilation error

    Hi! I just downloaded Recoder 0.94a but get the following compilation error: .\recoder\java\expression\ExpressionStatement.java:17: types recoder.java.LoopInitializer and recoder.java.Expression are incompatible; both define deepClone(), but with unrelated return types public interface ExpressionStatement extends Expression, LoopInitializer { I try to build using javac using no specific...

    2009-11-08 13:17:01 UTC by widheg

  • Followup: RE: Access FieldDeclaration from ClassDeclaratio?

    Hej, use TypeDeclaration.getMembers(), iterate over it (watch out, the return value may be "null" if there are no members whatsoever), and on each element try "m instanceof FieldDeclaration". Alternative, use getFields() and then FieldSpecification.getParent(). Tthis will return a FieldDeclaration. In the current release, you will have to cast it to FieldDeclaration, in the current SVN...

    2009-11-06 07:26:02 UTC by tgutzmann

  • RECODER

    tgutzmann committed revision 717 to the RECODER SVN repository, changing 1 files.

    2009-11-06 07:22:57 UTC by tgutzmann

  • Followup: RE: TypeArgumentDeclaration vs. TypeArgument?

    Hi! As a workaround, you should retrieve the latest version from the SVN repository. I just commited a bugfix for your issue ;) /Tobias.

    2009-11-06 07:19:19 UTC by tgutzmann

  • RECODER

    tgutzmann committed revision 716 to the RECODER SVN repository, changing 1 files.

    2009-11-06 07:12:47 UTC by tgutzmann

  • Followup: RE: TypeArgumentDeclaration vs. TypeArgument?

    Much thanks again Tobias! Concerning question 3 above, I just noticed that if one uses an index of 1 as argument to getTypeReferenceAt(index), then the exception java.lang.ArrayIndexOutOfBoundsException is thrown. In my example, getTypeReferenceCount() returns a value of 2, which is correct for my target code. Then I call getTypeReferenceAt(index) in a simple loop, first turn (index=0) in...

    2009-11-06 00:06:34 UTC by widheg

Our Numbers