Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18990

Re: Best way to generate XSD from Java

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Best way to generate XSD from Java
Date 2012-09-29 12:43 +0200
Message-ID <aco1mrFbse0U1@mid.individual.net> (permalink)
References (1 earlier) <5065f23e$0$285$14726298@news.sunsite.dk> <1w8k70m8bfjn7.g6ysc3inyk4d$.dlg@40tude.net> <acmcf7Fl42U1@mid.individual.net> <1ufgvja2wnfn2$.1uat2fmq12932$.dlg@40tude.net> <k46bra$dic$1@dont-email.me>

Show all headers | View raw


On 09/29/2012 10:34 AM, markspace wrote:
> On 9/28/2012 1:54 PM, the don wrote:
>
>> P.S. the annotations I'm speaking of would indicate things like a
>> Method's
>> name, it's return type and it's arguments.
>
> This sounds suspiciously like information that's already in the class
> files.  Are you planning on parsing source files, or interpreting byte
> codes?  The javap already does this, to a degree.

Exactly what I would have remarked: _all_ that information is already 
available in the class file.

> Possibly all you need to do is mark a method for testing;  the return
> type and argument list is retained in the byte code .class file.

I would even go as far as to claim that it is harmful to include said 
information in the annotation because it is redundant and won't 
automatically be adjusted if the class is changed.  Then there will be 
conflicting information.

Kind regards

	robert

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 14:30 -0400
  Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 14:53 -0400
    Re: Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 15:21 -0400
      Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-28 21:34 +0200
        Re: Best way to generate XSD from Java the don <donald@idaho.org> - 2012-09-28 16:54 -0400
          Re: Best way to generate XSD from Java Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-09-28 23:35 +0200
          Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 23:14 -0400
          Re: Best way to generate XSD from Java markspace <-@.> - 2012-09-29 01:34 -0700
            Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-29 12:43 +0200
          Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-29 12:55 +0200
        Re: Best way to generate XSD from Java Arne Vajhøj <arne@vajhoej.dk> - 2012-09-28 23:02 -0400
  Re: Best way to generate XSD from Java Roedy Green <see_website@mindprod.com.invalid> - 2012-09-30 04:03 -0700
    Re: Best way to generate XSD from Java Robert Klemme <shortcutter@googlemail.com> - 2012-09-30 17:24 +0200

csiph-web