This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Compiler Issue ?

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am having problem when complie the following code.

In the compiled class file a particular method is commented and shown as error. But in the main source file I cant able to identify any error or deprication

method warnings.





The compiled Class file



Any suggestion would be appreciated.

Regards
Ganesh
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ganesan Ramakrishnan wrote:Any suggestion would be appreciated.



Telling us what the exact error message is would be a start.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- How can a method be "commented" in a class file? What does that mean exactly?

- If the method is "shown as error", does that mean there is an error message of some kind? What is it?

- What are you using for a compiler?
 
Ganesan Ramakrishnan
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have included the compiled class file for your reference please see the previous post.
 
Ernest Friedman-Hill
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ganesan Ramakrishnan wrote:I have included the compiled class file for your reference please see the previous post.



OK, that looks like the output of a decompiler -- a program that attempts to take a class file and turn it back into source code. But your decompiler is failing to decompile a method, so it's showing you the JVM bytecodes, commented out, instead. All this means is that your decompiler couldn't figure out how to recreate the source code for a method -- a not uncommon occurrence.
 
Ganesan Ramakrishnan
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your valuable suggestion.

It would be the decompiler problem as you said.

we solved.
 
    Bookmark Topic Watch Topic
  • New Topic