Comments (8)
It's java 8 - PR #10 already fixes this
from lawu.
Okay. It seems strange as with all the java 8 stuff I have ran thru it I never ran into this.
from lawu.
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.
Can you provide an example classes or any details? A partial traceback is not a useful bug report...
from lawu.
I will work on figuring that out. Its something with getting the constants.
from lawu.
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.
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.
Okay. :P Thanks for maintaining such an awesome thing.
from lawu.
Related Issues (14)
- JarFile.class_count fails
- Add support for DataInputStream HOT 5
- Update pypi to a copy that works? (Current github master?) HOT 10
- Transform bytecode.yaml into bytecode.py HOT 1
- Support for Python2? HOT 2
- No longer works on python 2.7. Should be marked on pip as such. HOT 3
- Missing Attribute Tests
- Jasmin (.j) Assembler & Output Format
- Less than 100% coverage on Landscape HOT 1
- Stack Map Support In Assembler HOT 1
- Java 7/8 Support (including tests) HOT 2
- MethodTable.find's 'args' and 'returns' arguments don't work HOT 1
- Release on Pypi? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lawu.