kindlich
1bf0933315
Change some logging for tests
il y a 4 ans
kindlich
e9ab512059
Added char to JavaNativeModule
il y a 4 ans
kindlich
b30bfeb61d
Fixed List Foreach
Changes how Classes from Stdlibs are found in the NativeModule so that their Java type parameters properly match the ones from the Stdlibs files
il y a 4 ans
kindlich
96f81433ef
Oops I forgot these for the logging and some cleanup
il y a 4 ans
kindlich
1b737430f9
Started working on propagating a logger object instead of having to resort to Sysout
Mwahaha, Jared you will have to review this :manic_laugther:
il y a 4 ans
kindlich
370c2af1e9
Enums won't have superclasses
il y a 4 ans
kindlich
8ff353bcd1
Allow generic types in Java Signatures
Provide them as class parameters
il y a 4 ans
kindlich
0880bc8dc2
JavaNativeModule: Added some suppress statements for raw use of types
It's unavoidable at times
il y a 4 ans
kindlich
916a4dd121
Scripting Engine: Moved Creaton of JavaByteCodeRunUnit to own method to make it accessible from the outside
il y a 4 ans
kindlich
6e70f7453e
JavaNativeModule: LoadStatic now uses already existing method(s) if present
il y a 4 ans
kindlich
959618f7fb
JavaNativeModule: CompiledModules now retrieve all compiled information from parent modules
il y a 4 ans
kindlich
5d07a9331d
JavaNativeModule: Allow ZenMethod annotation to be used alongside the others
il y a 4 ans
kindlich
7134ba06b3
JavaNativeModule: Allow getters in Expansions
il y a 4 ans
kindlich
a7a7f84159
JavaNativeModule: Add type parameter infos from dependend modules
Background: Otherwise they will throw Exceptions because the class definitions are there but not the type infos
il y a 4 ans
kindlich
710d29a45a
JavaNativeModule: Fixed Method selection for Functional interfaces
Background: We only checked public nondefault, that matched for public statics as well.
Now checks for public nodefault abstract
Also TODO: Functional Type may not be part of functional Method's signature
il y a 4 ans
kindlich
ee949a7bd1
JavaNative: Moved loading of method return type to a latter time
Background: If the return type was a generic parameter, that early it wouldn't have been populated yet, and why load the return type as first thing in a method anyways?
il y a 4 ans
kindlich
8773d157ac
JavaNativeModule: Don't add methods whose signature was overriden to child class
Background: Javac creates an ACC_BRIDGE method to deal with the signature change (either a covariant parameter or contravariant return type change).
Hence there are two declared methods, one that is the old one, one that is new. For Signatures where only the return type changed this caused both to be registered and an ambiguity later where ZC could not determine which to choose
il y a 4 ans
kindlich
a96a0f41c0
Fixed JNM#getFunctionalInterfaceMethod
Now it doesn't select the first nondefault method but the first public nondefault method
il y a 4 ans
kindlich
5a9962b07a
[WIP] Skip member evaluation if class should not be loaded in the first place
Reason behind this is to prevent NoClassDefFoundErrors for working with Sided classes in MCF
il y a 4 ans
kindlich
422ee64c85
[WIP, I have no idea what I'm doing]Get types declared in StdLibs from the registry
il y a 4 ans
kindlich
8dd4cef26d
Added type mapping when generic base type is a class
il y a 4 ans
kindlich
ff6514edae
[WIP, I have no idea what I'm doing] Trying to get generic parameters working
Let's see if putting them all into one TypeVariableContext works..?
Also, a lambda that returns void cannot conclude the generic header. How should we deal with this?
il y a 5 ans
kindlich
10fc19cc9f
WIP: Saving so that it is safe :smile:
il y a 5 ans
Jared
1d02904fea
Maybe fixed type arguments, added more logger info
il y a 5 ans
Jared
c7466e5c37
Log more info about what package is trying to be registered into
il y a 5 ans
Jared
4cbbe1f387
work on getting this working
il y a 5 ans
Jared
6335559b29
Remove stdlib as a resource, as it is causing duplicate jar entries
il y a 5 ans
Jared
cc51395056
made stdlibs a jar file
il y a 5 ans
Jared
459781d075
Revert back to the zip file
il y a 5 ans
Jared
6de9e2f3fc
don't include StdLibs in the build anymore
il y a 5 ans
Jared
1f4b126e18
Added FolderPackage, made stdlibs read from a folder instead of zip
il y a 5 ans
Jared
cb2950a278
Revert "test with naming StdLibs as zsp (zs package)"
This reverts commit 95d9aa2b32 .
il y a 5 ans
Jared
95d9aa2b32
test with naming StdLibs as zsp (zs package)
il y a 5 ans
kindlich
2e09623f39
Fixed Module using class name instead of annotation name
il y a 5 ans
Jared
71844ec536
Added a logger to ScriptingEngine to catch a few extra errors
il y a 5 ans
kindlich
07d6866fb2
Fixed Bridge methods IncompatibleClassChangeError
Reason was that it tried to invokeInterface whereas a bridge redirects to a local (virtual) method.
The local method was flagged incorrectly as the same type as the bridger which would be interface, hence the error
il y a 5 ans
kindlich
4a078a08ae
Added Storage tag annotation
il y a 5 ans
kindlich
eca522b4f9
Some GetForName Changes
il y a 5 ans
kindlich
215e92e5bf
Added TypeParsing to JNM#getTypeFromName
il y a 5 ans
Jared
1ac2cb0bb6
fixed crash when value.name is null
il y a 5 ans
Jared
6f6b96ddb5
More work on expansions, casters are done
il y a 5 ans
kindlich
c7c34cbc2a
Expansions: Check if the 1st parameter is the expanded type
il y a 5 ans
kindlich
b1a2691cbf
First step towards ZenExpansions
They worked in my simple, void test example
il y a 5 ans
kindlich
58a34905c6
Fix optional not counting as nullable
The Optional annotation is parameter, not type bound
il y a 5 ans
kindlich
1dd20f24a2
JavaNativeModule: Moved definition register up to help with circular hierarchies
E.g. IIngredient has a method that accepts an IItemStack, which is a sub-interface
il y a 5 ans
kindlich
5d6ed900ad
Allow the use of default expressions in Optional annotation
il y a 5 ans
Jared
93d75695ec
fix optionals not inheriting nullable and expecting a default type
il y a 5 ans
Jared
ba2b04790b
small code cleanup
il y a 5 ans
kindlich
cebae626fe
ShouldLoadClass now checks for Name annotation
il y a 5 ans
Jared
d9e8ef65ea
Made the Name error say which class caused the issue
il y a 5 ans