Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: javac gener...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 774 of 808
Post > Topic >>

Re: javac generates bytecode using an inner class but does not generate

by Tom Hawtin <usenet@[EMAIL PROTECTED] > Jun 2, 2007 at 08:48 PM

Eric Bodden wrote:
> 
> HOWEVER, the actual real problem: No class file is ever being
> generated for SootProblem$1. Hence, I don't see how the class can have
> any definition at all. Yet, when you add a main-method to the class,
> instantiating SootProblem, the code loads and runs just fine. How can
> this possibly work? I am confused.

The SootProblem$1 class is never actually used, so needn't be loaded. If 
you added a static initialiser to SootProblem$1, it wouldn't be run.

> (The problem for us is that we have a static program analysis tool,
> Soot, which expects to be able to find a definition for SootProblem$1,
> sinc eit is referenced.)

Then don't write code like that. :)

Tom Hawtin
 




 3 Posts in Topic:
javac generates bytecode using an inner class but does not gener
Eric Bodden <eric.bodd  2007-06-02 18:51:56 
Re: javac generates bytecode using an inner class but does not g
Tom Hawtin <usenet@[EM  2007-06-02 20:48:37 
Re: javac generates bytecode using an inner class but does not g
Eric Bodden <eric.bodd  2007-06-02 21:47:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 19:28:12 CDT 2008.