Comments (6)
Maybe we should also add a check whether a constPoolSize
exceeds the limit?
from jboss-classfilewriter.
That was quick, thanks! ;-)
from jboss-classfilewriter.
Do you need a release with this?
from jboss-classfilewriter.
It seems org.jboss.classfilewriter.code.CodeAttribute.writeShort(int)
should probably only fail if n > Short.MAX_VALUE * 2
.
By the way, b2eb9f0 breaks weld on few places. org.jboss.classfilewriter.code.CodeAttribute.anewarray(String)
previously accepted a class name, e.g. java.lang.Class
. Now it fails with:
Caused by: java.lang.RuntimeException: invalid descriptor [Ljava.lang.Class;
at org.jboss.classfilewriter.code.StackEntry.<init>(StackEntry.java:68)
at org.jboss.classfilewriter.code.StackEntry.of(StackEntry.java:115)
at org.jboss.classfilewriter.code.StackState.push(StackState.java:93)
at org.jboss.classfilewriter.code.StackFrame.replace(StackFrame.java:138)
at org.jboss.classfilewriter.code.CodeAttribute.anewarray(CodeAttribute.java:233)
from jboss-classfilewriter.
The same applies to org.jboss.classfilewriter.code.CodeAttribute.exceptionBlockStart(String)
and maybe other methods...
A simple fix is to do type.replace('.', '/')
on a param but it might deserve a more systematic approach :-).
from jboss-classfilewriter.
@stuartwdouglas Thanks again :-)
from jboss-classfilewriter.
Related Issues (20)
- Fix StackMapTable attribute support HOT 1
- jboss-classfilewriter don't include the license file HOT 2
- JDK9 Reference To Internal APIs HOT 3
- CFW is using Unsafe to define classes which fails on Java 11 HOT 4
- JDK12 b14 java.lang.NoSuchFieldException: override HOT 14
- Weld fails to start on Java 17 (since build 21) HOT 3
- May I get source code or only modified class?
- Add a LICENSE/.txt/.md to this project
- Add README.md to this project
- Label some of the issues with good-firs-issue label
- Unified construct for forward/reverse branching
- Add CONTRIBUTING.txt/md/adoc file to this project
- Add CODE_OF_CONDUCT.md file to this project
- Add SECURITY.md file to this project HOT 1
- Add CODEOWNERS file
- Wrong OSGi headers generated with old maven-bundle-plugin
- DuplicateMemberException HOT 1
- Add Automatic-Module-Name
- OSGify jboss-classfilewriter
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 jboss-classfilewriter.