[jira] [Created] (NETBEANS-4515) remove use of proprietary API - ARRAYLENGTH

2020-06-28 Thread Brad Walker (Jira)
Brad Walker created NETBEANS-4515:
-

 Summary: remove use of proprietary API - ARRAYLENGTH
 Key: NETBEANS-4515
 URL: https://issues.apache.org/jira/browse/NETBEANS-4515
 Project: NetBeans
  Issue Type: Improvement
Reporter: Brad Walker
Assignee: Brad Walker


The code has a test case that uses a proprietary API field - ARRAYLENGTH..


{code:java}
...
 [nb-javac] 
/home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21:
 warning: ARRAYLENGTH is internal proprietary API and may be removed in a 
future release

 [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;

 [nb-javac]^

 [nb-javac] 
/home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21:
 warning: ARRAYLENGTH is internal proprietary API and may be removed in a 
future release

 [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;

 [nb-javac]^

 [nb-javac] 
/home/travis/build/apache/netbeans/java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/SeparatorTest.java:21:
 warning: ARRAYLENGTH is internal proprietary API and may be removed in a 
future release

 [nb-javac] import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;

 [nb-javac]^
...
{code}

Remove the import of this class as it's not used and causes spurious warnings..




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated: [NETBEANS-1721] Changed display of boolean values in PHP Debugger

2020-06-28 Thread junichi11
This is an automated email from the ASF dual-hosted git repository.

junichi11 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new b83834c  [NETBEANS-1721] Changed display of boolean values in PHP 
Debugger
 new 08fb876  Merge pull request #2178 from 
KacerCZ/netbeans-1721-boolean-debug
b83834c is described below

commit b83834cb143c0307f069670d7a1fb6fc88b901e1
Author: Tomas Prochazka 
AuthorDate: Tue Jun 9 23:15:37 2020 +0200

[NETBEANS-1721] Changed display of boolean values in PHP Debugger
---
 .../php/dbgp/models/nodes/AbstractModelNode.java   |  7 ++-
 .../php/dbgp/models/nodes/BooleanVariableNode.java | 55 ++
 .../dbgp/models/nodes/ScalarTypeVariableNode.java  |  7 ---
 3 files changed, 60 insertions(+), 9 deletions(-)

diff --git 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/AbstractModelNode.java
 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/AbstractModelNode.java
index 8ea306e..c0575ba 100644
--- 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/AbstractModelNode.java
+++ 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/AbstractModelNode.java
@@ -40,6 +40,8 @@ public abstract class AbstractModelNode {
 private static final String STRING = "string"; // NOI18N
 private static final String UNDEF = "uninitialized"; // NOI18N
 private static final String NULL = "null"; // NOI18N
+private static final String BOOLEAN = "boolean"; // NOI18N
+private static final String BOOL = "bool"; // NOI18N
 private List myVars;
 private AbstractModelNode myParent;
 
@@ -71,8 +73,9 @@ public abstract class AbstractModelNode {
 return new ObjectVariableNode(property, parent);
 case RESOURCE:
 return new ResourceVariableNode(property, parent);
-case ScalarTypeVariableNode.BOOLEAN:
-case ScalarTypeVariableNode.BOOL:
+case BOOLEAN:
+case BOOL:
+return new BooleanVariableNode(property, parent);
 case ScalarTypeVariableNode.INTEGER:
 case ScalarTypeVariableNode.INT:
 case ScalarTypeVariableNode.FLOAT:
diff --git 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/BooleanVariableNode.java
 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/BooleanVariableNode.java
new file mode 100644
index 000..d3da3c1
--- /dev/null
+++ 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/BooleanVariableNode.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.netbeans.modules.php.dbgp.models.nodes;
+
+import java.util.Set;
+import org.netbeans.modules.php.dbgp.UnsufficientValueException;
+
+import org.netbeans.modules.php.dbgp.models.VariablesModelFilter.FilterType;
+import org.netbeans.modules.php.dbgp.packets.Property;
+import org.openide.util.NbBundle;
+
+class BooleanVariableNode extends 
org.netbeans.modules.php.dbgp.models.VariablesModel.AbstractVariableNode {
+
+private static final String TYPE_BOOLEAN = "TYPE_Boolean"; // NOI18N
+private static final String VALUE_TRUE = "1"; // NOI18N
+private static final String DISPLAY_VALUE_TRUE = "true"; // NOI18N
+private static final String DISPLAY_VALUE_FALSE = "false"; // NOI18N
+
+BooleanVariableNode(Property property, AbstractModelNode parent) {
+super(property, parent);
+}
+
+@Override
+public String getType() {
+return NbBundle.getMessage(BooleanVariableNode.class, TYPE_BOOLEAN);
+}
+
+@Override
+protected boolean isTypeApplied(Set filters) {
+return filters.contains(FilterType.SCALARS);
+}
+
+@Override
+public String getValue() throws UnsufficientValueException {
+String value = super.getValue();
+return value.equals(VALUE_TRUE) ? DISPLAY_VALUE_TRUE : 
DISPLAY_VALUE_FALSE;
+}
+
+}
diff --git 
a/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/ScalarTypeVariableNode.java
 
b/php/php.dbgp/src/org/netbeans/modules/php/dbgp/models/nodes/ScalarTypeVariableNode.java
index 

[jira] [Commented] (NETBEANS-4501) Unit tests for Smarty fail

2020-06-28 Thread Jira


[ 
https://issues.apache.org/jira/browse/NETBEANS-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147431#comment-17147431
 ] 

Tomáš Procházka commented on NETBEANS-4501:
---

Tests for code completion fail because code-completion data were not donated.

Original files in Oracle repository: 
https://hg.netbeans.org/releases/file/5fd841261bf9/php.smarty/src/org/netbeans/modules/php/smarty/editor/completion/entries/defs


> Unit tests for Smarty fail
> --
>
> Key: NETBEANS-4501
> URL: https://issues.apache.org/jira/browse/NETBEANS-4501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Smarty
>Affects Versions: 12.0
>Reporter: Tomáš Procházka
>Assignee: Tomáš Procházka
>Priority: Major
>  Labels: pull-request-available
> Attachments: php.smarty-2020-06-28.txt
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Unit tests for Smarty Framework module fail.
> Run {{ant -f php/php.smarty}} and it results in build failure.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-4501) Unit tests for Smarty fail

2020-06-28 Thread Jira


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomáš Procházka updated NETBEANS-4501:
--
Labels: pull-request-available  (was: )

> Unit tests for Smarty fail
> --
>
> Key: NETBEANS-4501
> URL: https://issues.apache.org/jira/browse/NETBEANS-4501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Smarty
>Affects Versions: 12.0
>Reporter: Tomáš Procházka
>Assignee: Tomáš Procházka
>Priority: Major
>  Labels: pull-request-available
> Attachments: php.smarty-2020-06-28.txt
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Unit tests for Smarty Framework module fail.
> Run {{ant -f php/php.smarty}} and it results in build failure.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Updated] (NETBEANS-4501) Unit tests for Smarty fail

2020-06-28 Thread Jira


 [ 
https://issues.apache.org/jira/browse/NETBEANS-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tomáš Procházka updated NETBEANS-4501:
--
Attachment: php.smarty-2020-06-28.txt

> Unit tests for Smarty fail
> --
>
> Key: NETBEANS-4501
> URL: https://issues.apache.org/jira/browse/NETBEANS-4501
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Smarty
>Affects Versions: 12.0
>Reporter: Tomáš Procházka
>Assignee: Tomáš Procházka
>Priority: Major
> Attachments: php.smarty-2020-06-28.txt
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Unit tests for Smarty Framework module fail.
> Run {{ant -f php/php.smarty}} and it results in build failure.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-4489) java.lang.OutOfMemoryError: GC overhead limit exceeded [Mac OS X]

2020-06-28 Thread Pablo Roncaglia (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147407#comment-17147407
 ] 

Pablo Roncaglia commented on NETBEANS-4489:
---

Thanks you very much for your suggests. I will apply this suggestion into 
future issue reports.

I updated NetBeans to the new version 12.0, and this problem it's solved there.

> java.lang.OutOfMemoryError: GC overhead limit exceeded [Mac OS X]
> -
>
> Key: NETBEANS-4489
> URL: https://issues.apache.org/jira/browse/NETBEANS-4489
> Project: NetBeans
>  Issue Type: Bug
> Environment: Product Version = NetBeans IDE 7.4 (Build 
> 201310111528) (#6523d6792981)
>   Operating System= Mac OS X version 10.14.5 running on x86_64
>   Java; VM; Vendor= 1.8.0_111; Java HotSpot(TM) 64-Bit Server VM 
> 25.111-b14; Oracle Corporation
>   Runtime = Java(TM) SE Runtime Environment 1.8.0_111-b14
>Reporter: Pablo Roncaglia
>Priority: Critical
>  Labels: memory
> Attachments: messages.log.1
>
>
> I was working with a PHP project, getting files from a folder mounted on a 
> virtual machine with Debian via sshf. At one point, this unit was unmounted 
> by timeout, and by being able to not access it, I mounted the folder again. 
> Then, I immediately close the IDE in order to reload the project and try to 
> reopen it, and I get this error message.
> This is my first time that I'm making a contribution to the project reporting 
> an issue, please guide me in how I can collaborate by providing more 
> information if it's necessary.
> Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-4191) JPA metamodel classes not indexed properly so IDE generates symbol not found message

2020-06-28 Thread Jira


[ 
https://issues.apache.org/jira/browse/NETBEANS-4191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147400#comment-17147400
 ] 

Jürgen Simon commented on NETBEANS-4191:


The same problem also occurs with JDK 11 and ANT. With this ANT task, the 
problem can also be circumvented.
{code:java}







 



{code}

> JPA metamodel classes not indexed properly so IDE generates symbol not found 
> message
> 
>
> Key: NETBEANS-4191
> URL: https://issues.apache.org/jira/browse/NETBEANS-4191
> Project: NetBeans
>  Issue Type: Bug
>  Components: cnd - Editor
>Affects Versions: 12.0, 11.3
> Environment: Windows 10 - 1607
> OpenJDK jdk8u242-b08
> apache-maven 3.6.3
> JavaEE 6 web application project
> EclipseLink JPA provider
> Eclipselink annotation processor
>Reporter: Miklos Krivan
>Priority: Major
> Attachments: nb-1.PNG, nb-2.PNG
>
>
> first scenario NB is not running everything is executed in a console window
>  * maven clean install on my javaee web application project is successful
>  * all of the metamodel classess are compiled into 
> target/generated-sources/annotations folder
>  * the project can be deployed in TomEE instance - run without any mistake
> second scenario:
>  * clear all of the NetBeans cache from 
> %USERPROFILE%/AppData/Local/NetBeans/Cache
>  * now let's start the netbeans64.exe with my project
>  * after a while (some minutes) it finishes indexing and red flags appears on 
> some java source files (where JPA metamodel classess are used) All of the 
> generated metamodel classes looks missing - see my attached nb-1.PNG file
>  * now I do clean and build from the NetBeans and the read flags still 
> appears because of the metamodel classes are not indexed (so not recognized)
>  * now I have tried to open one of them and make some changes (space entered 
> and deleted) so triggering the modification of the source Java file and look 
> in the background the *.rapt and *_.sig suddenly appears in the Cache folder.
>  * so I am proceed with all of them and finally all of the red flag disappears
>  * no I make a new clean and build in the IDE and no red flag appears the 
> project is clean now
> If I repeat the scenarios again the same result.
> I would like to inform you also that this problem not exists in NB 11.2 there 
> only frequent freezing error happens during facelet scanning (full freeze of 
> NetBeans) that is why I wanted to step forward.
> So finally I did somthing magic in my pom file:
>  
> {code:java}
> // code placeholder
> 
> nb-modelgen-fix
> 
> 
> 
> org.apache.maven.plugins
> maven-antrun-plugin
> 3.0.0
> 
> 
> modelgen-touch-files
> install
> 
> run
> 
> 
> 
> 
>  dir="src/main/java" includes="**/*.java">
>  expression="(@Entity|@MappedSuperclass|@Embeddable)" casesensitive="yes" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> {code}
> You see this is just for NB so I have changed also the NB actions for clean 
> and build as well activating this profile.
> You see I just touch all of the modell classess after finishing the build 
> (install phase) and this way NB make records in his cache finally based on 
> the source change trigger.
> One more important thing I use the following annotation processor with 
> maven-compiler plugin:
> {code:java}
> // code placeholder
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 
> 
> 
> 
> org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor
> 
> 
> 
> -Aeclipselink.persistenceunits=REFLEX-PU
> 
> 1.8
> 1.8
> 
> 
> {code}
> and of course the build-helper plugin:
> {code:java}
> // code placeholder
> 
> org.codehaus.mojo
> build-helper-maven-plugin
> 3.1.0
> 
> 
> add-source
> generate-sources
> 
> add-source
> 
> 
> 
> 
> ${project.build.directory}/generated-sources/annotations
> 
> ${project.build.directory}/generated-sources/wsimport
>   

[jira] [Created] (NETBEANS-4514) Everytime I open Netbeans version 12.0 it lags completely. It takes about a minute for it to load.

2020-06-28 Thread Juan Paz (Jira)
Juan Paz created NETBEANS-4514:
--

 Summary: Everytime I open Netbeans version 12.0 it lags 
completely. It takes about a minute for it to load.
 Key: NETBEANS-4514
 URL: https://issues.apache.org/jira/browse/NETBEANS-4514
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.0
 Environment: I have attached an image of the Laptop being used
Reporter: Juan Paz
 Fix For: 12.0
 Attachments: IDE Log.txt, Laptop Info.PNG, UI Log.txt

I'm getting lag when loading netbeans, about a minute before it completely 
loads. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-4513) Font Chooser does not include user installed fonts

2020-06-28 Thread Micah Effre (Jira)
Micah Effre created NETBEANS-4513:
-

 Summary: Font Chooser does not include user installed fonts
 Key: NETBEANS-4513
 URL: https://issues.apache.org/jira/browse/NETBEANS-4513
 Project: NetBeans
  Issue Type: Bug
  Components: editor - Options
Affects Versions: 12.0
 Environment: Windows 10 Pro
Reporter: Micah Effre
 Attachments: SourceCodePro-Regular.ttf

I have added my favorite font "Source Code Pro" to my computer and I always use 
this font for all my development projects.  I upgraded from Apache NetBeans 11 
to 12 and I an no longer able to go into font chooser to add my font.  Tools-> 
Options -> Font & Colors -> Font chooser for category default.  When I scan the 
list my installed font "Source Code Pro" is not in the list.  

 

I had to go back to Apache version 11 to get my font back.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[netbeans] branch master updated: [NETBEANS-4400] Added support for renaming RECORD name using refactoring (#2164)

2020-06-28 Thread arusinha
This is an automated email from the ASF dual-hosted git repository.

arusinha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
 new 8469268  [NETBEANS-4400] Added support for renaming RECORD name using 
refactoring (#2164)
8469268 is described below

commit 8469268155211b13baf2767ab7d1c7aefb7bc5d5
Author: Akhilesh Singh 
AuthorDate: Sun Jun 28 17:08:14 2020 +0530

[NETBEANS-4400] Added support for renaming RECORD name using refactoring 
(#2164)

* [NETBEANS-4400] Added support for renaming RECORD name using refactoring

* [NETBEANS-4400] Addressed code review comments
---
 .../java.source.base/src/org/netbeans/api/java/source/TreeMaker.java | 5 +++--
 .../src/org/netbeans/modules/java/source/TreeShims.java  | 4 
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java 
b/java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java
index 78710dc..7e2baa0 100644
--- a/java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java
+++ b/java/java.source.base/src/org/netbeans/api/java/source/TreeMaker.java
@@ -73,6 +73,7 @@ import org.netbeans.api.lexer.TokenHierarchy;
 import org.netbeans.api.lexer.TokenSequence;
 
 import org.netbeans.api.java.lexer.JavaTokenId;
+import org.netbeans.modules.java.source.TreeShims;
 
 import org.netbeans.modules.java.source.builder.ASTService;
 import org.netbeans.modules.java.source.query.CommentSet;
@@ -2869,8 +2870,8 @@ public final class TreeMaker {
 // todo (#pf): Shouldn't here be check that names are not the same?
 // i.e. node label == aLabel? -- every case branch has to check itself
 // This will improve performance, no change was done by API user.
-Tree.Kind kind = node.getKind();
-
+Tree.Kind kind = TreeShims.isRecord(node) ? Kind.CLASS : 
node.getKind();
+   
 switch (kind) {
 case BREAK: {
 BreakTree t = (BreakTree) node;
diff --git 
a/java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java 
b/java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java
index 11b1c04..5e7b042 100644
--- a/java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java
+++ b/java/java.source.base/src/org/netbeans/modules/java/source/TreeShims.java
@@ -199,6 +199,10 @@ public class TreeShims {
 public static boolean isRecord(Element el) {
 return el != null && "RECORD".equals(el.getKind().name());
 }
+
+public static boolean isRecord(final N node) {
+return node != null && TreeShims.RECORD.equals(node.getKind().name());
+}
 
 public static boolean isRecordComponent(Element el) {
 return el != null && "RECORD_COMPONENT".equals(el.getKind().name());


-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-4512) Add support of inheritance in generated equals hashcode

2020-06-28 Thread Pavel_K (Jira)
Pavel_K created NETBEANS-4512:
-

 Summary: Add support of inheritance in generated equals hashcode 
 Key: NETBEANS-4512
 URL: https://issues.apache.org/jira/browse/NETBEANS-4512
 Project: NetBeans
  Issue Type: New Feature
Affects Versions: 12.0
Reporter: Pavel_K


Lets suppose we have two classes - A and B with one field in every class. B 
extends A. NetBeans generates the following equals and hashCode:

 
{code:java}
public class A {

private String Foo;

@Override
public int hashCode() {
int hash = 7;
hash = 67 * hash + Objects.hashCode(this.Foo);
return hash;
}

@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final A other = (A) obj;
if (!Objects.equals(this.Foo, other.Foo)) {
return false;
}
return true;
}

} 

public class B extends A {

private String bar;

@Override
public int hashCode() {
int hash = 7;
hash = 89 * hash + Objects.hashCode(this.bar);
return hash;
}

@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final B other = (B) obj;
if (!Objects.equals(this.bar, other.bar)) {
return false;
}
return true;
}
}

{code}
 
As we see A.equals and A.hashCode are not considered in generated B.equals and 
B.hashCode. The problem was also discussed here: 
https://stackoverflow.com/a/2067401/5057736 . 

So, I suggest to add boolean flag to these two forms like "Inheritance support" 
and generate equals and hashCode with inheritance support.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Issue Comment Deleted] (NETBEANS-2979) Dose not save password

2020-06-28 Thread Deva (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deva updated NETBEANS-2979:
---
Comment: was deleted

(was: Clifford.. i completely deleted all netbeans application related files 
then installed again its worked try it..)

> Dose not save  password
> ---
>
> Key: NETBEANS-2979
> URL: https://issues.apache.org/jira/browse/NETBEANS-2979
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Keyring, platform - Other
>Affects Versions: 12.0, 11.1, 11.2, 11.3
> Environment: Mac OS X, 10.14.3, x86_64
>Reporter: Clifford Dann
>Priority: Major
>  Labels: security
> Attachments: IDE Log.txt, UI Log.txt
>
>
> Every time you click remember password.
> error is NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.keyring.mac.SecurityLibrary



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2979) Dose not save password

2020-06-28 Thread Deva (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17147226#comment-17147226
 ] 

Deva commented on NETBEANS-2979:


No its not working.

> Dose not save  password
> ---
>
> Key: NETBEANS-2979
> URL: https://issues.apache.org/jira/browse/NETBEANS-2979
> Project: NetBeans
>  Issue Type: Bug
>  Components: platform - Keyring, platform - Other
>Affects Versions: 12.0, 11.1, 11.2, 11.3
> Environment: Mac OS X, 10.14.3, x86_64
>Reporter: Clifford Dann
>Priority: Major
>  Labels: security
> Attachments: IDE Log.txt, UI Log.txt
>
>
> Every time you click remember password.
> error is NoClassDefFoundError: Could not initialize class 
> org.netbeans.modules.keyring.mac.SecurityLibrary



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists