• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiler Message

 
Arthur Blair
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got this compiler message that I don't understand:


I have a method with the following signature in FormatUtil.java:



I am trying to call the method like this:

Object value = null;
value = ReflectionUtil.invokeGetter(toCall,myRow); // this returns a String, but that shouldn't be a problem, right?
value = FormatUtil.getMappedVersion(value, myColumn);

Can someone help decipher it please?

I would like to know:

  • what the 'L' means
  • What is causing the error
  • What the "Ljava/lang/String;" means?


  • Thoughts appreciated.
    [ December 12, 2005: Message edited by: Arthur Blair ]
     
    Ernest Friedman-Hill
    author and iconoclast
    Marshal
    Pie
    Posts: 24204
    34
    Chrome Eclipse IDE Mac OS X
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "Ljava/lang/String;", including the "L" and the ";", is the way Java class names are indicated in the Java class file format. There's a whole system of codes to name different types: I for int, Z for boolean, and Lclass/name; for classes.

    Without seeing exactly what ReflectionUtil.invokeGetter is doing, it's hard to say what's causing this error.
     
    Jeff Albertson
    Ranch Hand
    Posts: 1780
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    That's a runtime error, so I wouldn't call it a compiler message.
    It seems to me that you haven't compiled all your classes in
    a consistent manner. Rebuild your app and try again.
     
    Arthur Blair
    Ranch Hand
    Posts: 71
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I rebuilt and it worked. Strange.

    Thanks for the replies.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic