-
Bug
-
Resolution: Fixed
-
P3
-
hs25
-
b41
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8020653 | 8 | David Chase | P3 | Resolved | Fixed | b99 |
JDK-8202198 | 7u201 | David Buck | P3 | Resolved | Fixed | b01 |
Sergey Sprogis reports:
generated/adfiles/formssel.cpp source failed with the following message.
line 3845: Error: Deleting an object of polymorphic type MatchNode which doesn't have a virtual destructor may be unsafe.
Initially, I filed bug 16985917 under BugDB against C++, but Steve closed it with the resolution:
---------------------------------------------------------
Not a compiler bug, but a problem in the user code. At the line in question,
an object of type MatchNode is deleted, which is a polymorphic type not
having a virtual destructor. Such code is dangerous, and the compiler now
warns about it. The code is compiled with -errwarn, which converts warnings
into errors.
The source code should be fixed so that the base type, class Form, has a
virtual destructor.
generated/adfiles/formssel.cpp source failed with the following message.
line 3845: Error: Deleting an object of polymorphic type MatchNode which doesn't have a virtual destructor may be unsafe.
Initially, I filed bug 16985917 under BugDB against C++, but Steve closed it with the resolution:
---------------------------------------------------------
Not a compiler bug, but a problem in the user code. At the line in question,
an object of type MatchNode is deleted, which is a polymorphic type not
having a virtual destructor. Such code is dangerous, and the compiler now
warns about it. The code is compiled with -errwarn, which converts warnings
into errors.
The source code should be fixed so that the base type, class Form, has a
virtual destructor.
- backported by
-
JDK-8020653 Hotspot compilation error with latest Studio compiler
-
- Resolved
-
-
JDK-8202198 Hotspot compilation error with latest Studio compiler
-
- Resolved
-
- relates to
-
JDK-8020307 Hotspot compilation error with latest Studio compiler (def of "oop")
-
- Closed
-