Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1b75598
Update to JCOBridge 2.6.7-beta
masesdevelopers Mar 29, 2026
0d50c6d
Update to beta1
masesdevelopers Mar 29, 2026
dc92010
JNetReflector distinguish JCOBridge base class searching for AutoClos…
masesdevelopers Mar 29, 2026
74fd40b
Remove default constructor from templates and introduces listeners wi…
masesdevelopers Mar 29, 2026
f80fd42
Fix generation
masesdevelopers Mar 29, 2026
28a0adc
Update generated classes after commit f80fd42
masesdevelopers Mar 29, 2026
f5ad4a2
Since Container does not implement AutoCloaseable the Dispose shall b…
masesdevelopers Mar 29, 2026
0c02ab2
Update old base class
masesdevelopers Mar 29, 2026
9abcdac
Fix wrong exclude
masesdevelopers Mar 29, 2026
4e21275
Default constructor, if available, shall be reflected
masesdevelopers Mar 29, 2026
27dfc30
Default constructor, if available, shall be reflected
masesdevelopers Mar 29, 2026
18387e3
Update generated classes after commit 4e21275 (#907)
github-actions[bot] Mar 29, 2026
8c5c986
Update dispatch input
masesdevelopers Mar 29, 2026
176339d
Merge branch '894-remove-idisposable-pattern-where-not-needed' into c…
masesdevelopers Mar 29, 2026
7492592
Update to beta2
masesdevelopers Mar 30, 2026
c5e2e62
Merge branch '894-remove-idisposable-pattern-where-not-needed' into c…
masesdevelopers Mar 30, 2026
805d38c
Update to beta 3
masesdevelopers Mar 31, 2026
a86b6ec
Update to beta 4
masesdevelopers Mar 31, 2026
4ab5f9f
Merge branch '894-remove-idisposable-pattern-where-not-needed' into c…
masesdevelopers Mar 31, 2026
54a1ab3
Update to beta 5
masesdevelopers Apr 3, 2026
e0bd3c5
Merge branch '894-remove-idisposable-pattern-where-not-needed' into c…
masesdevelopers Apr 3, 2026
91c75f3
Merge branch 'master' into create-pull-request/patch-f80fd42
masesdevelopers Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 9 additions & 5 deletions src/net/JNet/Developed/Java/Awt/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
*/

using MASES.JCOBridge.C2JBridge;
using System;

namespace Java.Awt
{
public partial class Container
public partial class Container : IDisposable
{
// can be extended with methods not reflected or not available in Java;

readonly object _lock = new object();
bool _disposed = false;
IJCGraphicContainer _container = null;
/// <summary>
/// Creates the <see cref="HostedContainer"/> and returns <see cref="IJCGraphicContainer.GraphicObject"/>
Expand All @@ -33,7 +36,7 @@ public partial class Container
/// <returns>The <see cref="object"/> in the <see cref="IJCGraphicContainer.GraphicObject"/> property</returns>
public object CreateHostedContainer(bool isWPF, JCWindowsManager manager = null)
{
lock (this)
lock (_lock)
{
if (_container == null)
{
Expand All @@ -49,17 +52,18 @@ public object CreateHostedContainer(bool isWPF, JCWindowsManager manager = null)
/// </summary>
public IJCGraphicContainer HostedContainer { get { lock (this) { return _container; } } }
/// <inheritdoc/>
protected override void Dispose(bool disposing)
public virtual void Dispose()
{
lock (this)
lock (_lock)
{
if (_disposed) throw new ObjectDisposedException("");
_disposed = true;
if (_container != null)
{
Management.ReleaseJCGraphicContainer(_container);
_container = null;
}
}
base.Dispose(disposing);
}

// TODO: complete the class
Expand Down
2 changes: 1 addition & 1 deletion src/net/JNet/Developed/Java/Lang/String.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace Java.Lang
{
public partial class String : JVMBridgeBase<String>, INativeConvertible<String, string>, SystemNet.IComparable<String>, SystemNet.IEquatable<String>
public partial class String : JVMBridgeBaseCore<String>, INativeConvertible<String, string>, SystemNet.IComparable<String>, SystemNet.IEquatable<String>
{
#region Constructors
/// <summary>
Expand Down
7 changes: 0 additions & 7 deletions src/net/JNet/Generated/.editorconfig

This file was deleted.

15 changes: 10 additions & 5 deletions src/net/JNet/Generated/Java/Applet/Applet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public partial class Applet : Java.Awt.Panel
{
const string _bridgeClassName = "java.applet.Applet";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public Applet() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -47,7 +43,7 @@ public Applet(IJVMBridgeBaseInitializer initializer) : base(initializer) { }
public Applet(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand All @@ -70,6 +66,15 @@ public Applet(params object[] args) : base(args) { }
public partial class Applet
{
#region Constructors
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/applet/Applet.html#java.applet.Applet()"/>
/// </summary>

/// <exception cref="Java.Awt.HeadlessException"/>
public Applet()
: base()
{
}

#endregion

Expand Down
9 changes: 2 additions & 7 deletions src/net/JNet/Generated/Java/Applet/AppletContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ namespace Java.Applet
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/applet/AppletContext.html"/>
/// </summary>
public partial class AppletContext : MASES.JCOBridge.C2JBridge.JVMBridgeBase<AppletContext>
public partial class AppletContext : MASES.JCOBridge.C2JBridge.JVMBridgeBaseCore<AppletContext>
{
const string _bridgeClassName = "java.applet.AppletContext";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[global::System.Obsolete("AppletContext class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AppletContext() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -49,7 +44,7 @@ public AppletContext(IJVMBridgeBaseInitializer initializer) : base(initializer)
public AppletContext(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
9 changes: 2 additions & 7 deletions src/net/JNet/Generated/Java/Applet/AppletStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ namespace Java.Applet
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/applet/AppletStub.html"/>
/// </summary>
public partial class AppletStub : MASES.JCOBridge.C2JBridge.JVMBridgeBase<AppletStub>
public partial class AppletStub : MASES.JCOBridge.C2JBridge.JVMBridgeBaseCore<AppletStub>
{
const string _bridgeClassName = "java.applet.AppletStub";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[global::System.Obsolete("AppletStub class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AppletStub() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -49,7 +44,7 @@ public AppletStub(IJVMBridgeBaseInitializer initializer) : base(initializer) { }
public AppletStub(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
9 changes: 2 additions & 7 deletions src/net/JNet/Generated/Java/Applet/AudioClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ namespace Java.Applet
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/applet/AudioClip.html"/>
/// </summary>
public partial class AudioClip : MASES.JCOBridge.C2JBridge.JVMBridgeBase<AudioClip>
public partial class AudioClip : MASES.JCOBridge.C2JBridge.JVMBridgeBaseCore<AudioClip>
{
const string _bridgeClassName = "java.applet.AudioClip";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[global::System.Obsolete("AudioClip class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AudioClip() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -49,7 +44,7 @@ public AudioClip(IJVMBridgeBaseInitializer initializer) : base(initializer) { }
public AudioClip(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
7 changes: 1 addition & 6 deletions src/net/JNet/Generated/Java/Awt/AWTEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public partial class AWTEvent : Java.Util.EventObject
{
const string _bridgeClassName = "java.awt.AWTEvent";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[global::System.Obsolete("AWTEvent class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AWTEvent() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -49,7 +44,7 @@ public AWTEvent(IJVMBridgeBaseInitializer initializer) : base(initializer) { }
public AWTEvent(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
8 changes: 2 additions & 6 deletions src/net/JNet/Generated/Java/Awt/AWTEventMulticaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ namespace Java.Awt
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/awt/AWTEventMulticaster.html"/>
/// </summary>
public partial class AWTEventMulticaster : MASES.JCOBridge.C2JBridge.JVMBridgeBase<AWTEventMulticaster>
public partial class AWTEventMulticaster : MASES.JCOBridge.C2JBridge.JVMBridgeBaseCore<AWTEventMulticaster>
{
const string _bridgeClassName = "java.awt.AWTEventMulticaster";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public AWTEventMulticaster() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -47,7 +43,7 @@ public AWTEventMulticaster(IJVMBridgeBaseInitializer initializer) : base(initial
public AWTEventMulticaster(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
6 changes: 1 addition & 5 deletions src/net/JNet/Generated/Java/Awt/AWTKeyStroke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public partial class AWTKeyStroke : Java.Io.Serializable
{
const string _bridgeClassName = "java.awt.AWTKeyStroke";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public AWTKeyStroke() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -47,7 +43,7 @@ public AWTKeyStroke(IJVMBridgeBaseInitializer initializer) : base(initializer) {
public AWTKeyStroke(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
6 changes: 1 addition & 5 deletions src/net/JNet/Generated/Java/Awt/AWTPermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ public partial class AWTPermission : Java.Security.BasicPermission
{
const string _bridgeClassName = "java.awt.AWTPermission";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public AWTPermission() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -47,7 +43,7 @@ public AWTPermission(IJVMBridgeBaseInitializer initializer) : base(initializer)
public AWTPermission(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
9 changes: 2 additions & 7 deletions src/net/JNet/Generated/Java/Awt/ActiveEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@ namespace Java.Awt
/// <summary>
/// <see href="https://docs.oracle.com/javase/8/docs/api/java/awt/ActiveEvent.html"/>
/// </summary>
public partial class ActiveEvent : MASES.JCOBridge.C2JBridge.JVMBridgeBase<ActiveEvent>
public partial class ActiveEvent : MASES.JCOBridge.C2JBridge.JVMBridgeBaseCore<ActiveEvent>
{
const string _bridgeClassName = "java.awt.ActiveEvent";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
[global::System.Obsolete("ActiveEvent class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ActiveEvent() { }
/// <summary>
/// Internal constructor: used internally from JCOBridge
/// </summary>
[global::System.Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
Expand All @@ -49,7 +44,7 @@ public ActiveEvent(IJVMBridgeBaseInitializer initializer) : base(initializer) {
public ActiveEvent(params object[] args) : base(args) { }

private static readonly global::System.Exception _LocalBridgeClazzException = null;
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBase.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static readonly MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType _LocalBridgeClazz = JVMBridgeBaseCore.ClazzOf(_bridgeClassName, out _LocalBridgeClazzException, false);
private static MASES.JCOBridge.C2JBridge.JVMInterop.IJavaType LocalBridgeClazz => _LocalBridgeClazz ?? throw _LocalBridgeClazzException ?? new global::System.InvalidOperationException($"Class {_bridgeClassName} was not found.");

/// <inheritdoc/>
Expand Down
Loading
Loading