Comments (4)
Code snippet of com.google.gson.stream.JsonReader.nextInt in me.clip:placeholderapi:2.9.2 (shadowed but expected to invoke method):
//line 870
if (p == 16) {
this.peekedString = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
} else if (p == 8 || p == 9 || p == 10) {
if (p == 10) {
this.peekedString = nextUnquotedValue();
} else {
this.peekedString = nextQuotedValue((p == 8) ? 39 : 34);
}
try {
int result = Integer.parseInt(this.peekedString);
this.peeked = 0;
this.pathIndices[this.stackSize - 1] = this.pathIndices[this.stackSize - 1] + 1;
return result;
} catch (NumberFormatException numberFormatException) {}
}
Code snippet of com.google.gson.stream.JsonReader.nextInt in com.google.code.gson:gson:2.2.4 (loaded version):
//line 841
if (p == 16) {
this.peekedString = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
} else {
if (p != 8 && p != 9) {
throw new IllegalStateException("Expected an int but was " + this.peek() + " at line " + this.getLineNumber() + " column " + this.getColumnNumber());
}
this.peekedString = this.nextQuotedValue((char)(p == 8 ? '\'' : '"'));
try {
result = Integer.parseInt(this.peekedString);
this.peeked = 0;
return result;
} catch (NumberFormatException var5) {
}
}
As a result, these conflicting method included in me.clip:placeholderapi:2.9.2 deals with different cases, which changes the control flows and data flows. So being forced to use these methods in com.google.code.gson:gson:2.2.4 may lead to inconsisitent semantic behaviors.
from chestcommands.
@filoghost May I pull a request to fix it?
from chestcommands.
Hello, thank you very much for the in-depth analysis, sorry if I only answer now. I think it's quite bad that PlaceholderAPI includes a common library, especially one that already ships with Spigot, without relocating it.
However, I don't understand why is this dependency order important, since ChestCommands doesn't call com.google.gson.stream.JsonReader.nextInt
(the method you mentioned). The dependency order is not important during runtime (it will not affect class loading). Is it relevant only for other plugins using ChestCommands through Maven?
from chestcommands.
@HelloCoCooo why did you close this?
from chestcommands.
Related Issues (20)
- How to disable the auto update ?my server running in 1.7.10. HOT 1
- I can't connect to an other server. HOT 1
- How to execute multiple commands
- No me deja usar el plugin HOT 1
- My menu is a validated yml but there is an unknown error
- Placeholders dont work HOT 1
- ID:402 Firework_Charge does not support NBT color HOT 1
- Can i add a cooldown in commands? HOT 1
- Potion ID usage HOT 1
- Plugin not registering menu commands HOT 3
- Apostrophe in give command HOT 1
- I can't use BungeeCord's cross-server Commands in ChestCommands HOT 2
- The language system of ChestCommands(Version-4.0.3) are Invalid HOT 3
- Add payment support for PlayerPoints HOT 1
- MATERIAL: stone:1 doesn't work on 1.12.2 HOT 1
- Console Error on my server HOT 1
- This's most likely the same type of bug that is on all CatServer. HOT 2
- Will Chestcommands support folia ?
- PIONTS Unrecognized parameter HOT 1
- Player failed to use command and it prompts ChestCommands v4.0.5 - plugin is disabled but i cant understand know what is wrong HOT 2
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 chestcommands.