Git Product home page Git Product logo

Comments (8)

Pokechu22 avatar Pokechu22 commented on August 22, 2024

It's java 8 - PR #10 already fixes this

from lawu.

wgaylord avatar wgaylord commented on August 22, 2024

Okay. It seems strange as with all the java 8 stuff I have ran thru it I never ran into this.

from lawu.

wgaylord avatar wgaylord commented on August 22, 2024
  File "/usr/local/lib/python2.7/dist-packages/jawa/constants.py", line 295, in __getitem__
    return self.get(idx)
  File "/usr/local/lib/python2.7/dist-packages/jawa/constants.py", line 288, in get
    constant = self._pool[index]
TypeError: list indices must be integers, not ConstantClass

from lawu.

TkTech avatar TkTech commented on August 22, 2024

Can you provide an example classes or any details? A partial traceback is not a useful bug report...

from lawu.

wgaylord avatar wgaylord commented on August 22, 2024

I will work on figuring that out. Its something with getting the constants.

from lawu.

wgaylord avatar wgaylord commented on August 22, 2024

It might just be my code is finally broken again.. Here is my full stacktrace.

Traceback (most recent call last):
  File "MinecraftFingerprinter.py", line 28, in <module>
    FingerPrinter.GenerateClassFingerPrint()
  File "/Profiler/FingerPrinter.py", line 88, in GenerateClassFingerPrint
    FingerPrint["class"][key]['interfaces'].append(ClassFiles[key].constants[x].name.value)
  File "/usr/local/lib/python2.7/dist-packages/jawa/constants.py", line 295, in __getitem__
    return self.get(idx)
  File "/usr/local/lib/python2.7/dist-packages/jawa/constants.py", line 288, in get
    constant = self._pool[index]

https://github.com/chibill/JarFingerPrinter/blob/master/FingerPrinter.py
Holds the code that caused the error.
Still working on getting the class that toasted.

And I think I figured it out... the latest change in https://github.com/TkTech/Jawa/blob/master/jawa/cf.py#L230
broke my code. Possible you should start using version numbers? (You have been at 1.0.0 for a while with many changes)

Because the return went from being a index in the constant pool to an actual instance of the constant class.

from lawu.

TkTech avatar TkTech commented on August 22, 2024

I do, ongoing work is in the develop branch. That shouldn't have made it into master I guess I whooped while cherry picking.

from lawu.

wgaylord avatar wgaylord commented on August 22, 2024

Okay. :P Thanks for maintaining such an awesome thing.

from lawu.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.